Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (603)
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 4482 times)
0 Members and 1 Guest are viewing this topic.
Offline hawkwind

Junior Devvie




Java games rock!


« Reply #30 - Posted 2005-09-22 23: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 Devvie





« Reply #31 - Posted 2005-09-23 01: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 Devvie




Java games rock!


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

You can try http://www.planit3d.com
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Grand Poeba

Junior Devvie





« Reply #33 - Posted 2005-09-26 22: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 Devvie





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

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

Senior Devvie




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


« Reply #35 - Posted 2005-09-29 20: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 Devvie





« Reply #36 - Posted 2005-10-05 09: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 Devvie




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


« Reply #37 - Posted 2005-10-05 11: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 Devvie





« Reply #38 - Posted 2005-10-05 14: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 Devvie




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


« Reply #39 - Posted 2005-10-05 18: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!
Legends of Yore - The Casual Retro Roguelike
Offline otelo

Junior Devvie





« Reply #40 - Posted 2005-10-15 21: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.

 

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

The first screenshot will be displayed as a thumbnail.

rwatson462 (30 views)
2014-12-15 09:26:44

Mr.CodeIt (23 views)
2014-12-14 19:50:38

BurntPizza (49 views)
2014-12-09 22:41:13

BurntPizza (83 views)
2014-12-08 04:46:31

JscottyBieshaar (44 views)
2014-12-05 12:39:02

SHC (58 views)
2014-12-03 16:27:13

CopyableCougar4 (56 views)
2014-11-29 21:32:03

toopeicgaming1999 (122 views)
2014-11-26 15:22:04

toopeicgaming1999 (112 views)
2014-11-26 15:20:36

toopeicgaming1999 (32 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
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!