Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (535)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Art of Illusion compatibility with Xith3D  (Read 956 times)
0 Members and 1 Guest are viewing this topic.
Offline ssstratton

Senior Newbie




7 years commercial java - still learning...


« Posted 2005-04-18 10:56:56 »

Very briefly - I have managed to get art of illusion models imported into xith3d - and wondered if anyone had any experience with some issues I am having:-

1. I'm using the new dawn obj loader - which seems to work fine, but the names of the objects don't seem to be transferred over. I was hoping to create multiple objects in a scene, then identify them and manipulate them (i.e make them appear and disappear) as need be. i.e. getName() returns empty.

2. I'm exporting the whole scene and generating an mtl file - but the rendered xith3d scene has some wierd artifacts that aren't visible in the aoi scene. I realise that there is a difference in the rendering - but wondered if there is a way to make aoi more closely represent the xith3d equivalent.

3. I was hoping to use some of the aoi texture and material generators - but it seems that really only images are supported. Does anyone know if anything else will work?  Sorry to be so vague on this...

Cheers
 Andy Stratton
Online kevglass

JGO Kernel


Medals: 120
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #1 - Posted 2005-04-18 11:11:55 »

The generators in AOI don't get transferred into the mtl file (at least I don't remember seeing them in there). The names of the objects "should" get transferred if they're actually put into the .OBJ file.

The newdawn OBJ loader should come with source from what I can remember was pretty simple and light, you could also check it and change it Smiley

Kev

Offline hawkwind

Junior Member




Java games rock!


« Reply #2 - Posted 2005-04-19 00:10:44 »

i have mods to AOI that will save individual obj's as separate file.  Can't upload at the moment fer some reason will try again later and tell you where to find it.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ssstratton

Senior Newbie




7 years commercial java - still learning...


« Reply #3 - Posted 2005-04-19 08:32:28 »

Thanks for the offer of the individual file save. Does it do more than the standard single object export?  I've used that before - though I can't remember if the materials worked.

Cheers
 Andy
Offline hawkwind

Junior Member




Java games rock!


« Reply #4 - Posted 2005-04-20 01:06:42 »

Basically I have modified the obj exporter to generate N obj files for N objects.  One gotcha with AOI is when you duplicate an object it is given the same name (10 Cube 1's).  My solution was to generate sequentially numbered objects and an assoicated .ext file which contains the object name, location, bounds etc.  So opening boolean1.ext contains info related to the object Boolean 3, its bounds etc.


name: Boolean 3 bounds: Box: {-10.0, 10.0}   {-4.539179048177993, 5.460820951822006}   {-8.729053659903073, 11.270946340096929} coords:Vec3: -24.926546382539637, 3.4374913548318395, -24.12610571059229 rot 0.0 0.0 0.0

in the loc below is a zip (aoi3.zip) containing my current (rough....rough...) source for the obj exporter and an Entity tool.  also a jar to stick in the AOI plugin  directory.

http://hawkwind.home.mindspring.com/

What this gives you is an additional obj exporter accessable from the export menu entry  (watch out there are two now, the original and mine,  use the first)

The entity tool is what makes this cooooll.  Under the tools menu is now an Entity entry.  Select an object and then select tool->entity and an entity object is added.  If you double click on this a Bout based dialog appears containing all of the obj specific flags I set in my game...mod as you see fit

I use this to say things like  "circle 2 is a light switch and is pickable and turns on PointLight 3, has comment 113, uses sound blah.wav etc"

A lot of the unique attributes for an object can be configured in this way...game specific of course

When you export the scene you get N obj's, N .ext's and One Entity file containing all of the data. and a manifest file identifying the list of obj files.

Put in the jar, create a small scene, export it and look at whats produced.

A bit rushed at the moment so i can expand on this later.
Offline ssstratton

Senior Newbie




7 years commercial java - still learning...


« Reply #5 - Posted 2005-04-22 14:04:24 »

Hawkwind
 Thanks for the obj export code - the attributes part looks really useful - but I haven't got that far yet!  I hope to be able to use it later...

Cheers
 Andy
Pages: [1]
  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.

Riven (7 views)
2014-07-29 12:53:52

Dwinin (7 views)
2014-07-29 10:59:34

E.R. Fleming (23 views)
2014-07-29 03:07:13

E.R. Fleming (9 views)
2014-07-29 03:06:25

pw (39 views)
2014-07-24 01:59:36

Riven (39 views)
2014-07-23 21:16:32

Riven (26 views)
2014-07-23 21:07:15

Riven (28 views)
2014-07-23 20:56:16

ctomni231 (59 views)
2014-07-18 06:55:21

Zero Volt (51 views)
2014-07-17 23:47:54
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!