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

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

  • : 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.
Sign In or Register to comment.

Howdy, Stranger!

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

Categories

In this Discussion