www.jpct.net
jPCT - a 3d engine for Java => Support => Topic started by: Melssj5 on May 15, 2006, 01:18:41 am
-
Hi, is ti posible to draw 2d primitives like Lines, circles, rectangles and things like that???? I need them for a homework and all my classmates are asking for a engine to do that.
-
This is probably not the best way, but you can use Primitives.getPlane() to create an Object3D plane and use setTransparency() on it. Then apply a texture that would have a drawing of your 2D shape on it.
-
Hi, is ti posible to draw 2d primitives like Lines, circles, rectangles and things like that???? I need them for a homework and all my classmates are asking for a engine to do that.
seems as java.awt.geom package is the engine you are looking for ;)
r a f t
-
I need to work with 2d primitives but in OpenGl. Any possibilities to do it in jpct?
-
i know almost nothing about open gl but i will most likely go after the Mr.Marbles' approach. java.awt.geom package can help to generate textures on the fly
r a f t
-
Generating textures on the fly to do this is suitable if it's all part of a 3d application. But if this is a 2d application, i don't recommend to use jPCT for this at all...it's a 3d engine, not a function plotter.
-
Ok, thanks. Anyway to draw just a point on a pixel?, I can manually draw the lines.