[Dir3d-l] X & Z Transform Reversed

Naomi Spirit N.Spirit at LTScotland.com
Thu Sep 5 13:17:03 EDT 2002


The following code was placed in a start movie script:


  put gScene.model("wattle and daub byre2").transform.position

  gScene.model("wattle and daub byre2").translate(1833,0,4299)

  put gScene.model("wattle and daub byre2").transform.position

And it returns:

-- vector( 0.0000, 0.0000, 0.0000 )
-- vector( 4.29900e3, 0.0000, -1.83300e3 )

as you can see, Director is transposing the x and y transforms.  This is the
second time that I've experienced this (and I never found a solution last
time).  Anyone else experienced this, or have any idea why this could occur?
Or have a workaround?  

If you try and join it in its own game and transpose the x & z axis:

gScene.model("house1").translate(4299,0,1833)

the transform works as it should in the first place and moves 4299 units on
the x and 1833 on the y instead of transposing them again.  The project I'm
working on involves placing about 100 models and this has occured twice.
Any ideas would be much apreciated!



Thanks
Naomi



-----Original Message-----
From: nick kang [mailto:nick at rasterwerks.com]
Sent: 04 September 2002 11:06
To: dir3d-l at nuttybar.drama.uga.edu
Subject: [Dir3d-l] Phosphor - Shockwave Quake 3 demo


Hi folks,

I've posted a version of a Shockwave Quake 3 tech demo I've been working
on for a couple of months now.  Check it out here (along with a formal
description):

http://www.rasterwerks.com/demos.htm

This is an early alpha and does not really have any gameplay yet (the
rocket launcher is kinda fun though).  I am primarily interested in it's
compatibility with various OS's and video card setups.  I'll try to put
benchmark functions into the next release.  AI and networking will come
next if all goes well.

There are a few features that might be of interest to the SW3D
developers on the list:

- Lingo based physics routines (not quite Havok, but I think sufficient
for a character controller and projectile-type missles).  Only
modelsUnderRay() is used for collision detection.
- No scene culling (at least not currently).  I actually think SW3D's
view frustum culling works quite well as long as you don't have too many
objects. Take a look a the dramatic change in fps depending on your
current orientation.
- All world updates are time based, the demo should scale reasonably
well from 10 fps to 120 fps.  I am getting about 40-90 fps on my
development box (P4 1.6, GF4 Ti4400).  Generally, the swings in fps are
not too noticeable.
- Light mappping via secondary texture layer (using #ADD for now,
hopefully Macromedia/Intel will include a proper shift-multiply raster
op next time).
- Point light sources (not sure why more people aren't using these)
- Animated textures (frames/uv scaling/uv transforms)
- 3D sprites (billboards)
- Pseudo additive texturing (flames,projectiles,impacts; these are
pre-generated using UNMULT in After Effects)
- line of sight light flares (just one for now, the sun)
- Enhancer Xtra for mouselook - the ONLY way to drive an FPS! (tm) ;-)

Try it out if you have an appropriate hardware setup (the release page
has a description of the  minimum machine specs), and let me know it
goes.  Also, take a look at the bottom of the release page for things
you can mess with at the command console.

regards,
nick kang
www.rasterwerks.com



_______________________________________________
Dir3d-l mailing list
Dir3d-l at nuttybar.drama.uga.edu
http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l

***********************************************************************
This e-mail, and any attachment, is privileged information and its
contents are confidential to the intended recipient at the e-mail
address to which it has been addressed. It may not be disclosed to or
used by anyone other than this addressee.  If received in error, please
contact Learning & Teaching Scotland on +(44) 141 337 5000 or e-mail
enquiries at ltscotland.com, quoting the name of the sender and the
addressee, and then delete it from your system.
Please be aware that, although all reasonable steps have been taken,
neither Learning & Teaching Scotland nor the sender is able to accept
any responsibility for viruses.
No contracts may be concluded on behalf of Learning & Teaching
Scotland by means of e-mail communications.
The contents of this message may contain personal views which are not
the views of Learning & Teaching Scotland, unless specifically stated.
**********************************************************************



More information about the Dir3d-l mailing list