people playing: 79, servers online: 26, games played: 142,000,000 Top Player: Money

  Toribash Community » Help » Technical Support
Register FAQ General Rules Community
Closed Thread
 
Thread Tools Display Modes
Old Aug 1, 2006   #1
SlainVeteran
I has a flavour
 
Brown Belt
Join Date: Jul 2006
Posts: 752
Clan: bncy



raytrace head rotation
I am trying to detect the direction of the head so that I can give it a face in POV-Ray.

I can get roughly in the correct direction (usually about 30 degrees out) using some rotations with the rot0 to rot11 values.

Is there an easy way to find out the rotation from the given matrix transformation (or other information)?

I have already spent about 2 and half hours on this, so any help will be appreciated!
I has a flavour
SlainVeteran is offline  
Old Aug 1, 2006   #2
hampa
In coder land
Re: raytrace head rotation
Hi Slainveteran,

The matrix for the heads where a bit different from the rest of the bodyparts.

I have updated the povray exporter and made an example on how to use a simple texture on the head (glossy.inc).

http://www.toribash.com/Toribash-Beta-Setup.exe

The texture statments should use matrixes instead of euler rotation:
Code:
texture { pigment { wood scale 0.05 matrix <rot0, -rot1, rot2, rot3, -rot4, rot5, rot6, -rot7, rot8, rot9, -rot10, rot11> } finish { specular 0.3 reflection 0.6 } }
The .inc files where a bit borked aswell it seemed. I have reverted to older versions.

Here is an example of a "Wood" head texture with rotation that matches the head.



[attachment deleted by admin, limit reached]
hampa is offline  
Old Aug 1, 2006   #3
SlainVeteran
I has a flavour
 
Brown Belt
Join Date: Jul 2006
Posts: 752
Clan: bncy



Re: raytrace head rotation
awesome

just so you know your work is not going to waste... here is a new raytrace of an old position...

I decided to model some simple face shapes to show the direction instead of using a texture. Works the same way using the matrix.

[attachment deleted by admin, limit reached]
I has a flavour
SlainVeteran is offline  
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:04 PM.




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
ragdoll fighting game physics fighting game ragdoll fighting physics funmotion joints martial arts karate pc mac free game turn based game