Skip to main content

how to find image

2 replies [Last post]
adamtdisplay
Offline
Joined: 2011-02-02
Points: 0

Where do you place the image to be called? For example, where should i place the "floor.gif" image within my system?
for (double x = -FLOOR_WIDTH + FLOOR_WIDTH / (2 * kNumTiles); x < FLOOR_WIDTH; x = x
+ FLOOR_WIDTH / kNumTiles) {
for (double z = -FLOOR_LENGTH + FLOOR_LENGTH / (2 * kNumTiles); z < FLOOR_LENGTH; z = z
+ FLOOR_LENGTH / kNumTiles) {
floorTile = new Land(this, g, ComplexObject.GEOMETRY
| ComplexObject.TEXTURE);
floorTile.createObject(app, new Vector3d(x, m_kFloorLevel, z),
new Vector3d(FLOOR_WIDTH / (2 * kNumTiles), 1,
FLOOR_LENGTH / (2 * kNumTiles)), "floor.gif",
null, null);
}

Thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sproketboy
Offline
Joined: 2006-08-07
Points: 0

These files are found using the normal Java resource loading rules.
Check this:
http://www.google.ca/search?q=java+resource+loading&ie=utf-8&oe=utf-8&aq...

adamtdisplay
Offline
Joined: 2011-02-02
Points: 0

Great. Thanks