Re: [Flightgear-devel] Re: How to correctly change material emission using conditions in .xml file?

2006-02-23 Thread Josh Babcock
Chris Metzler wrote:
> 
> On Thu, 23 Feb 2006 16:30:11 +0100
> Melchior FRANZ wrote:
> 
>>When I need information about an animation, I look into three sources:
>>the model-howto.hml, simgear/scene/model/animation.[ch]xx, and animation
>>files in $FG_ROOT/Aircraft/*. The second source shouldn't be necessary,
>>but until someone comes along and completes the model-howto this is a
>>good enough workaround.
> 
> 
> This may be naive, but I might suggest that a fantastic place for
> stuff on how the animations work would be the wiki.  Nuggets of
> relevant posts on the mailing lists, or from discussions on the
> IRC channel, could be copied there verbatim (e.g. "Discussions on
> the Flash Animation"; and subsequent updates to the Model-HOWTO
> could come from editing the stuff that made it onto the relevant
> wiki page(s).
> 
> -c
> 
I agree wholeheartedly. In fact, I should have the two final images I
need to put one tutorial up very soon.

Josh


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Re: How to correctly change material emission using conditions in .xml file?

2006-02-23 Thread Chris Metzler


On Thu, 23 Feb 2006 16:30:11 +0100
Melchior FRANZ wrote:
>
> When I need information about an animation, I look into three sources:
> the model-howto.hml, simgear/scene/model/animation.[ch]xx, and animation
> files in $FG_ROOT/Aircraft/*. The second source shouldn't be necessary,
> but until someone comes along and completes the model-howto this is a
> good enough workaround.

This may be naive, but I might suggest that a fantastic place for
stuff on how the animations work would be the wiki.  Nuggets of
relevant posts on the mailing lists, or from discussions on the
IRC channel, could be copied there verbatim (e.g. "Discussions on
the Flash Animation"; and subsequent updates to the Model-HOWTO
could come from editing the stuff that made it onto the relevant
wiki page(s).

-c

-- 
Chris Metzler   [EMAIL PROTECTED]
(remove "snip-me." to email)

"As a child I understood how to give; I have forgotten this grace since I
have become civilized." - Chief Luther Standing Bear


signature.asc
Description: PGP signature


Re: [Flightgear-devel] Re: How to correctly change material emission using conditions in .xml file?

2006-02-23 Thread Melchior FRANZ
* Roberto Inzerillo -- Thursday 23 February 2006 20:01:
> I have another simple question anyway. Do I brake something if I set
> emission values higher then 1 or lessere then 0 for red,green and blue?

No. It's clamped to allowed values (0--128 for shininess, 0--1 else)



> Are those values acceptable to flightgear? Even if it makes no sense to have
> the red component of the emission color >1 or <0 (which are max and min
> value)?

That's fine. min/max are implicit here. They can currently only be set
explicitly for transparency/alpha.

m.


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Re: How to correctly change material emission using conditions in .xml file?

2006-02-23 Thread Melchior FRANZ
* Roberto Inzerillo -- Thursday 23 February 2006 17:26:
> Am I saying something correct here or am I totally away from reality?

Everything correct. (And *-norm properties *are* supposed to deliver
values ranging from 0 to 1.)



> Well, e.g. the statement "The offset is applied before the factor" [...]

Eeew ... indeed. That's written in the "rotate" animation and is
wrong, even for "rotate":

  _position_deg = _prop->getDoubleValue() * _factor + _offset_deg;

There you see why animation.[ch]xx is one of my information sources.
I'll fix that in the documentation.

m.


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Re: How to correctly change material emission using conditions in .xml file?

2006-02-23 Thread AJ MacLeod
On Thursday 23 February 2006 10:42, Robicd wrote:
> I was looking for some suggestions because I find the only documentation
> available for non programmers (which is the model-howto.html) a little
> bit confusing regarding factor, offset and -prop stuff.
> I guess I will have to clear things out by myself :-(

Or you might try the IRC channel; if you're stuck with getting something to 
work, often someone can set you straight very quickly, or cite a useful 
example.

I appreciate "real time" communication like IRC is not as easy for those who 
only speak English as a second language but on the other hand, lots (maybe 
even most) of the regulars are in that category...

Cheers,

AJ


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Re: How to correctly change material emission using conditions in .xml file?

2006-02-23 Thread Robicd

Hi Melchior,

As soon as I use the  instead of  property (and so on 
with green and blue) flightgear crashes with the following error message:


It doesn't crash ...

>

Unknown exception in the main loop. Aborting...


... but abort, because you entered an invalid property. This has nothing
to do with the "material" animation. Sigh ...


That's nice to know to pretty useless to me by the time.



But maybe  has to be used with slightly different syntax;


Reading the documentation is *strongly* recommended before you complain.
It's a bug in your XML code.


Of course, Melchior, I wasn't complaining :-) Did I?
I was just comparing my experience in order to go on with learning and 
creating new pretty 3d models for fgfs.


I was looking for some suggestions because I find the only documentation 
available for non programmers (which is the model-howto.html) a little 
bit confusing regarding factor, offset and -prop stuff.


I guess I will have to clear things out by myself :-(

   bye,
 Roberto





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Re: How to correctly change material emission using conditions in .xml file?

2006-02-22 Thread Robicd

Hi Melchior,

That means I can only change the color emission property of a 3d model 
once per flightgear session [...]



No. But only once with static values. If you use  etc., then
you can change it as often as you like. That's what is done in the
bo105 material dialogs (Ctrl-y) after all. But again: it's a bug and
I'll post a fix later today.


As soon as I use the  instead of  property (and so on 
with green and blue) flightgear crashes with the following error message:


Unknown exception in the main loop. Aborting...
Possible cause: No error

But maybe  has to be used with slightly different syntax; I'll 
read more on the docs. Or is that a bug too?


   cheers,
 Roberto


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Re: How to correctly change material emission using conditions in .xml file?

2006-02-22 Thread Robicd

Melchior FRANZ wrote:

* Roberto Inzerillo -- Wednesday 22 February 2006 19:43:

I've set two animations with one condition each; the conditions compare 
the current sun-angle-rad with a fixed value; one condition should make 
the Needle light on, the second condition should bring the Needle back 
to no emission.



That's a bug. Static values are only initially set. But, of course, they
should always be set again if a condition is present and has changed. I'll
soon submit a fix.


That means I can only change the color emission property of a 3d model 
once per flightgear session (with such an approach) then the model is 
ztuck to that emission value and there's no way (until next fgfs 
release) to bring it back to previous emission state. Is that the way it 
works now?


   Roberto


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel