Texture mapping in Java 2D!

P

plank

Hey Everyone.. I am new to java and trying to experiment with the graphics side of java.

I currently have a 3D cube which I can spin around.. what I am trying ot do now is to map a photo to the sides of the cube..
am totally lost! Can anyone give me a pointer on how to start??

Help would be much appreciated!

Thanks in advance,

AJB
 
P

plank

Doesn't the Java3D require a seperate runtime to be installed on each client to work? Or have I got it wrong? I need to be
able to do this with just standard JRE, which is why am trying to do everything manually.

Thanks!
 
M

megagurka

The JRE doesn't contain any methods for texture mapping, only image
blitting. If you can't use OpenGL (JOGL or LWJGL), you need to
implement it yourself. Implementing fast perspective correct texture
mapping is not an easy task though. Search Google for some example
code.
 
A

Andrew Thompson

Hey Everyone.. I am new to java

A better group for those new to Java is..
...and trying to experiment with the graphics side of java.

I currently have a 3D cube which I can spin around..

Please insert line-breaks at 72 chars or less.
..what I am trying ot do now is to map a photo to the sides of the cube..
am totally lost! Can anyone give me a pointer on how to start??

This a very vague question, answers might range from..
- "Start at the beginning"
- "Open an IDE"
- "Visit the tutorils at Sun"
- ....
<http://www.physci.org/codes/javafaq.jsp#specific>

OTOH, you might look at the AffineTransform class.
<http://java.sun.com/j2se/1.5.0/docs/api/java/awt/geom/AffineTransform.html>

Which is used in the source of Transform.java, on the bottom of this page..
<http://java.sun.com/developer/codesamples/media.html>

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top