Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (404)
games submitted by our members
Games in WIP (289)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2]
  ignore  |  Print  
  Move/Spin model  (Read 2751 times)
0 Members and 1 Guest are viewing this topic.
Offline hawkwind

Junior Member




Java games rock!


« Reply #30 - Posted 2005-09-23 01:16:27 »

My tutorial is not ready for prime time yet.  But here is my recomendation

Get the source for the maze3d demo from xith.org

key strokes map to methods of the MovementForce class in the maze demo, turnLeft, turnRight, forward, etc.  This class is passed a reference to your View and manipulates this view accordingly ala Camera

understand the code, then use HIAL lib to call the correct methds of MovementForce class instead of AWTKeyboard

The Maze code uses Eulars for rotations, examining the code which rotated around Y, should allow you to extand and rotate around any axis
Offline Grand Poeba

Junior Member





« Reply #31 - Posted 2005-09-23 03:28:32 »

My tutorial is not ready for prime time yet.  But here is my recomendation

Get the source for the maze3d demo from xith.org

key strokes map to methods of the MovementForce class in the maze demo, turnLeft, turnRight, forward, etc.  This class is passed a reference to your View and manipulates this view accordingly ala Camera

understand the code, then use HIAL lib to call the correct methds of MovementForce class instead of AWTKeyboard

The Maze code uses Eulars for rotations, examining the code which rotated around Y, should allow you to extand and rotate around any axis


thx will try this Smiley
maybe an odd question but does anyone know where i can get some 3ds max models for free (with textures included) of some buidlings, citys?
i would like to craete a world or someting like that
Offline hawkwind

Junior Member




Java games rock!


« Reply #32 - Posted 2005-09-23 13:15:58 »

You can try http://www.planit3d.com
Games published by our own members! Check 'em out!
Try the Free Demo of Droid Assault
Offline Grand Poeba

Junior Member





« Reply #33 - Posted 2005-09-27 00:53:01 »

i want to attach the camera to my jeep so when it  moves it moves along with
as long as the jeep rotates at starting poitns, camera rotates alogn
ik i drive for or backward, the camera does the same thing
but when i first rotate and then drive forward camera screws up
same if i want to rotate when i have driven forward/backward

i know i had to add someting to the coordinates but i cant seem to figure out what
Offline Grand Poeba

Junior Member





« Reply #34 - Posted 2005-09-29 21:09:59 »

i can import com.xith3d... pakcages but not the org.xith ones?
any idea?
Offline arne

Senior Member




money is the worst drug- we should not let it rule


« Reply #35 - Posted 2005-09-29 22:23:24 »

the org-packages are from the xith-tk. You'll have to download also the cvs from the xith-tk (that's a different project).

easy rule:
org.xith3d : xith-tk
com.xith3d: xith (core)

Arne

:: JOODE :: Xith3d :: OdeJava ::
Offline Grand Poeba

Junior Member





« Reply #36 - Posted 2005-10-05 11:59:54 »

sometimes when i try to load a 3ds model I get an array out of bounds exception
this isdue to a part of the model
when i delete the part in 3ds max and then export new model and load it in my program
everything goes fine
maybe the dimensions are to big?
Offline arne

Senior Member




money is the worst drug- we should not let it rule


« Reply #37 - Posted 2005-10-05 13:32:23 »

this sounds very much like a bug in your importing/exporting process. Could you print the stack trace of the exception?

:: JOODE :: Xith3d :: OdeJava ::
Offline Grand Poeba

Junior Member





« Reply #38 - Posted 2005-10-05 16:13:29 »

this sounds very much like a bug in your importing/exporting process. Could you print the stack trace of the exception?

i have attached 2 pics of errors with the arrayoutofbounds
Offline arne

Senior Member




money is the worst drug- we should not let it rule


« Reply #39 - Posted 2005-10-05 20:00:49 »

aehm
you can also get the text by pressing enter on your keyboard, then you don't have to post screenshots.

I'll take a look anyways...

EDIT: Yep, it really seems that this is a loader3ds problem. To fix this you could do several things:
1. Wait until somebody fixes this.
2. Download the source and fix it yourself.
3. If you're not able to fix it, make a new post adressing this problem.
4. If nothing else works, simply check what the differences between your working and not working model are. E.g. has that part you delete to make it work any specialities? And then simply don't export scenes that contain such.

:: JOODE :: Xith3d :: OdeJava ::
Games published by our own members! Check 'em out!
Play the free demo of Revenge of the Titans!
Offline otelo

Junior Member





« Reply #40 - Posted 2005-10-15 23:01:15 »

Tesselating your model in 3DS before you export it to a .3DS file should cure your OutOfBounds problem. It works for me.
Pages: 1 [2]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars and Titan!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (17 views)
2013-05-17 21:29:12

alaslipknot (31 views)
2013-05-16 21:24:48

gouessej (61 views)
2013-05-16 00:53:38

gouessej (60 views)
2013-05-16 00:17:58

theagentd (69 views)
2013-05-15 15:01:13

theagentd (63 views)
2013-05-15 15:00:54

StreetDoggy (104 views)
2013-05-14 15:56:26

kutucuk (128 views)
2013-05-12 17:10:36

kutucuk (128 views)
2013-05-12 15:36:09

UnluckyDevil (137 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.122 seconds with 21 queries.