Texture mapping in Java 2D!

  • Follow


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

0
Reply plank (6) 9/1/2005 10:39:34 PM

plank@plank.com wrote:
> 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
What about RTFM?
http://java.sun.com/products/java-media/3D/reference/api/index.html
-- 
"Thomas:Fritsch$ops:de".replace(':','.').replace('$','@')

0
Reply i.dont.like.spam (473) 9/2/2005 10:37:36 AM


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!

On Fri, 02 Sep 2005 10:37:36 GMT, Thomas Fritsch <i.dont.like.spam@invalid.com> wrote:

>plank@plank.com wrote:
>> 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
>What about RTFM?
>http://java.sun.com/products/java-media/3D/reference/api/index.html

0
Reply plank (6) 9/2/2005 11:24:23 AM

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.

0
Reply megagurka (116) 9/2/2005 2:31:11 PM

On Thu, 01 Sep 2005 23:39:34 +0100, plank@plank.com wrote:

> Hey Everyone.. I am new to java 

A better group for those new to Java is..
<http://www.physci.org/codes/javafaq.jsp#cljg>

> ...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

-- 
Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
"The shackles of commitment fell, in pieces on the ground"
Led Zeppelin 'Achilles Last Stand'
0
Reply SeeMySites (3836) 9/2/2005 3:14:59 PM

On Fri, 02 Sep 2005 15:14:59 GMT, Andrew Thompson wrote:

> A better group for those new to Java is..
> <http://www.physci.org/codes/javafaq.jsp#cljg>

Almost the correct HTML anchor, instead, try..
<http://www.physci.org/codes/javafaq.jsp#cljh>

-- 
Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
"Any minute now, I'm expectin' all hell to break loose.."
Bob Dylan 'Things Have Changed'
0
Reply SeeMySites (3836) 9/2/2005 3:17:45 PM

5 Replies
31 Views

(page loaded in 0.297 seconds)

Similiar Articles:









7/28/2012 8:02:15 AM


Reply: