Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: multiple textures on a cube (opengl example)

by Anonymous Monk
on Sep 03, 2010 at 22:54 UTC ( [id://858819]=note: print w/replies, xml ) Need Help??


in reply to multiple textures on a cube (opengl example)

When I attempt to run on Windows XP platform I get this for cubeGL.exe... Can't call method "Get" on an undefined value at cubeGL.pl line 14. and this for cubeGL.pl Can't call method "Get" on an undefined value at F:\Data\Premera\TK\cubeGL\cubeGL.pl line 11.
  • Comment on Re: multiple textures on a cube (opengl example)

Replies are listed 'Best First'.
Re^2: multiple textures on a cube (opengl example)
by orange (Beadle) on Sep 10, 2010 at 19:14 UTC
    hello
    you need the six images to texture the six sides of the cube: just download the rared file contains perl file with the six images from the link in my first post.
    also do not forget to install opengl and opengl image as described in the post.
      I downloaded the six images and they exist in the same directory as the code. I also ran the ppm installs you listed for opengl and opengl image. I still get the same error as before. Any ideas?

        The default engine does not support these jpg images, on Linux at least...

        The easiest method without code change is to use the ImageMagick 'convert' cli utility, and convert the .jpg to .tga format.

        After conversion this works and is a good demo/starting point for understanding a bit of the opengl stuff.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://858819]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-25 02:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found