3D Gauges

Anything to do with Aircraft Design, FSDS, G Max, Aircraft Animator, SDL Edit, etc. Novice or skilled - stop here & learn!

3D Gauges

Postby Gaspen » Sun Oct 21, 2007 5:32 pm

Hi !

I'm searching for a tutorial about creating 3D gauges which you can see in RealAir planes. Which "direction" to start?
Gaspen
Ground hog
Ground hog
 
Posts: 26
Joined: Thu Sep 06, 2007 6:13 am
Location: Hungary

Re: 3D Gauges

Postby Felix/FFDS » Sun Oct 21, 2007 6:09 pm

A 3eD gauge is basically straight modelling - you model each part of the gauge, and set the animated needle, etc. with the proper animations.

THe hard part will always be getting the XML coding correct.
Felix/FFDS
User avatar
Felix/FFDS
Administrator
Administrator
 
Posts: 16776435
Joined: Wed Jan 31, 2001 9:42 am
Location: Orlando, FL

Re: 3D Gauges

Postby Travis » Sun Oct 21, 2007 11:49 pm

Check out the FFDS forums for more information on this.  Look in the XML Codes section.  Link in Felix's signature above.
Image
User avatar
Travis
Major
Major
 
Posts: 4381
Joined: Thu Feb 06, 2003 3:17 am
Location: KAUS - 30 MI NW

Re: 3D Gauges

Postby Gaspen » Mon Oct 22, 2007 3:57 am

Thanks guys ! My idea was also the same, but didn't how to start. I hope FFDS forum will give the answer  ;)
Gaspen
Ground hog
Ground hog
 
Posts: 26
Joined: Thu Sep 06, 2007 6:13 am
Location: Hungary

Re: 3D Gauges

Postby Gaspen » Mon Oct 22, 2007 3:04 pm

Well, I found some XML codes at FFDS forum, does not work for first time....

My way : I make the object in MAX, name it 'gau_needle_speed', anim it with keyframes.
Then I paste the code into modeldef.xml, and use the same text (gau_needle_speed) in the section within it. Finally i export the model to FSX.
Gaspen
Ground hog
Ground hog
 
Posts: 26
Joined: Thu Sep 06, 2007 6:13 am
Location: Hungary

Re: 3D Gauges

Postby Felix/FFDS » Mon Oct 22, 2007 5:23 pm

Post your code here to take a look at it.  It may be that syntax is wrong (FS-X is even more picky on capitalizations than FS9)

Too many thiings to even start thinking what's going off.
Felix/FFDS
User avatar
Felix/FFDS
Administrator
Administrator
 
Posts: 16776435
Joined: Wed Jan 31, 2001 9:42 am
Location: Orlando, FL

Re: 3D Gauges

Postby Gaspen » Mon Oct 22, 2007 5:38 pm

Here is the code :


 gau_needle_speed  
 200    
   
     
       
        AIRSPEED INDICATED  
        mph  
        4  
        0  
        160  
     
 
   
 
 
 


I also add this line to the file :

 

And here is the XAnim file :



         type="Sim" typeParam="" typeParam2="">
   
     
     
     
     
     
   

     



8-)
Gaspen
Ground hog
Ground hog
 
Posts: 26
Joined: Thu Sep 06, 2007 6:13 am
Location: Hungary

Re: 3D Gauges

Postby Fr. Bill » Mon Oct 22, 2007 11:35 pm

Well, I found some XML codes at FFDS forum, does not work for first time....

My way : I make the object in MAX, name it 'gau_needle_speed', anim it with keyframes.
Then I paste the code into modeldef.xml, and use the same text (gau_needle_speed) in the section within it. Finally i export the model to FSX.


I assume you used the Animation Tool to assign the "gau_needle_speed" animation name to the part, right?

The needle should be keyframed from 0 - 200 (you stopped at 100!), with intermediate keyframes at the major tickmarks on the background image.
BillImage Gauge Programming - 3d Modeling Eaglesoft Development Group Intel Core 2 Quad Q6600-4GB DDR2 Crucial PC6400-800 GB SATA-ATI Radeon HD2400 Pro 256MB DX10 [i
Fr. Bill
Captain
Captain
 
Posts: 961
Joined: Sun Apr 27, 2003 1:31 pm
Location: Hammond, IN

Re: 3D Gauges

Postby Gaspen » Tue Oct 23, 2007 5:33 am

Ok, I keyframed it 0-200. Only one change : the needle rotating around and around independetly from the real speed of the plane...like a second-needle on a clock :)
Gaspen
Ground hog
Ground hog
 
Posts: 26
Joined: Thu Sep 06, 2007 6:13 am
Location: Hungary

Re: 3D Gauges

Postby Fr. Bill » Tue Oct 23, 2007 11:51 am

Try removing the 4 entry.
BillImage Gauge Programming - 3d Modeling Eaglesoft Development Group Intel Core 2 Quad Q6600-4GB DDR2 Crucial PC6400-800 GB SATA-ATI Radeon HD2400 Pro 256MB DX10 [i
Fr. Bill
Captain
Captain
 
Posts: 961
Joined: Sun Apr 27, 2003 1:31 pm
Location: Hammond, IN

Re: 3D Gauges

Postby Gaspen » Tue Oct 23, 2007 1:04 pm

Now I have a working airspeed and vertical speed gauge :)  I learned some rules about XML coding from the SDK. So AnimLength = Scale * Value ( the value between MaxValue and MinValue ). I'm not sure, but I think I have to tag the anim with Anim.Manager FIRST, after that I have to animate the part.
Now I'm working with the altimeter...

Thanks a lot !  :)
Gaspen
Ground hog
Ground hog
 
Posts: 26
Joined: Thu Sep 06, 2007 6:13 am
Location: Hungary

Re: 3D Gauges

Postby Katahu » Tue Oct 23, 2007 1:09 pm

Hmm, modeling a working gauge in a 3D model? That sounds like something I should explore. My custom 2D gauges tend to be poor in quality, so let me see if this method is any better for my taste. Keep it up, Gaspen. From the looks of things, you seem to be a fast learner.
User avatar
Katahu
Lieutenant Colonel
Lieutenant Colonel
 
Posts: 5993
Joined: Mon Jul 22, 2002 10:29 pm

Re: 3D Gauges

Postby Gaspen » Tue Oct 23, 2007 1:56 pm

Here is the working code for my airspeed gauge. The max. value on the instrument's face is 400 km/h, thats why I use this number. Scale is 1, so one frame in MAX equal to 1km/h.


 needle_speed  
 400    
   
     
       
        AIRSPEED TRUE  
        kph  
        1  
        0  
        400  
     
 
   
 
 
 


My altimeter is working also, but both of the needles stop after one revolution. Any idea to solve this?
Gaspen
Ground hog
Ground hog
 
Posts: 26
Joined: Thu Sep 06, 2007 6:13 am
Location: Hungary


Return to Aircraft & 3D Design

Who is online

Users browsing this forum: No registered users and 592 guests