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: GL_POINTS & Textures - comp.graphics.api.openglWhat you describe works for me in 2D... I don't know ... example: Each vertex can read one texel from the texture map ... Best Image Processing Open Source API in JAVA - comp ... Tao.Platform.Windows.SimpleOpenGlControl texture problem - comp ...... 2D, texID); Gl.glTexParameteri(Gl.GL_TEXTURE_2D ... Olaf: I tried your RGB->BGR mapping, too - unfortunately the texture is drawn ... comp.graphics.api.opengl... comp.lang.java ... Transparency of BMP image pixels - comp.graphics.api.opengl ...... them as texture, it goes like this : glEnable(GL_TEXTURE_2D ... can make black clear, e.g., with a pixel transfer map ... machine code) So I learned how to really hate Java. RGB to ABGR? - comp.graphics.api.opengl... Olaf: I tried your RGB->BGR mapping, too - unfortunately the texture is > drawn ... rgb value - comp ... buffer ... for RGB 2D ... strings to an output in BGR strings in Java ... Laptop with an "excellent" screen ? - comp.laptopsA splash screen - comp.lang.java.gui I am trying to ... OpenGL 2D plotting library - comp.graphics.api.opengl ... ... Wolfgang -- OpenGL tip #42: How to exactly map texture texels ... rewrite glRotate? - comp.graphics.api.opengl... in a much shorter time, than it takes, to map the data ... number of texture units on GeForce 6800 - comp.graphics.api ... BattleShip Game App using Swing - comp.lang.java ... Graphics Programming with the Java 2D API | The Basic Java 2D ...Operations such as texture mapping, stroking, and alpha composting can be applied equally to shapes and text. The key to using Java 2D for graphics is to understand a ... Java Tips - Texture mapping - NeHe Tutorial JOGL PortJava Tips -- Java, Java, and more Java, Texture mapping - NeHe Tutorial JOGL Port ... 0.0f, 0.0f, 1.0f); gl.glBindTexture(GL.GL_TEXTURE_2D, texture); gl ... 7/28/2012 8:02:15 AM
|