Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

How can I write pixels directly and fast to an image?

mklasonmklason Member Posts: 5
line(x,y,x,y) is too slow.
I saw some fast applets doing bump mapping or some simple 3D effects very fast.
How is it possible ?

Thx for help

Comments

  • IllcoIllco Member Posts: 382
    : line(x,y,x,y) is too slow.
    : I saw some fast applets doing bump mapping or some simple 3D effects very fast.
    : How is it possible ?
    :
    : Thx for help
    :

    For bumpmapping consider Java3D (an extension library). It is not superfast but reasonably. For the rest, consider drawing to an offscreen BufferedImage and then flip this into the screen.

    If you're gonna draw lines, I don't think you can do much better than drawLine(x,y,x,y) unless you have some special conditions allowing a major speedup.
  • Shawn CarterShawn Carter Member Posts: 0

    ___ | http://forcoder.org | free ebooks and video tutorials about < PHP Visual Basic .NET Visual Basic Scratch PL/SQL Swift Objective-C MATLAB JavaScript Delphi C# C Ruby Assembly Java Perl R Go C++ Python Bash Prolog Clojure D Awk FoxPro Lisp ML Ada Scheme Lua F# Erlang SAS Alice Crystal LabVIEW Transact-SQL Logo ABAP Rust Julia Kotlin Scala Fortran COBOL VBScript Hack Dart Apex /> ______

Sign In or Register to comment.