2D Primitives

Started by Melssj5, May 15, 2006, 01:18:41 AM

Previous topic - Next topic

Melssj5

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.
Nada por ahora

Mr.Marbles

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.

raft

Quote from: "Melssj5"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 ;)

Quoter a f t

Melssj5

I need to work with 2d primitives but in OpenGl. Any possibilities to do it in jpct?
Nada por ahora

raft

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

EgonOlsen

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.

Melssj5

Ok, thanks. Anyway to draw just a point on a pixel?, I can manually draw the lines.
Nada por ahora