home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


Does the cube engine support Z axis rotation (roll)?

by chasester on 04/05/2014 18:30, 10 messages, last message: 04/08/2014 21:26, 1353 views, last view: 04/26/2024 01:39

So when reading through the source code (mostly in relation to the render model function), I noticed that there is a yaw and pitch for player/map models but there is no roll value (z axis rotation - or y axis depending on what coordinate system you follow).

I dug deeper into the code looking through the batch model code and still didn't find any roll values. Does cubes current model system even allow for this rotation. And if not is there an easy way to go about adding it in (other than making 2 different instances of the model on differing axises)?


chasester

   Board Index   

#1: ..

by Papriko on 04/05/2014 19:04

The only "roll" I can think of is maxroll, which influences how much you turn sideways when yous strafe. Maybe a grep for it gives you what you need?

reply to this message

#2: ..

by chasester on 04/05/2014 19:53

lolz thats camera roll :p Most engines allow 3 axis rotation 0.0 just odd that its not there, Any Were :?

reply to this message

#3: Re: ..

by suicizer01 on 04/06/2014 11:12, refers to #2

As mdlpitch (x-axis) and mdlyaw (y-axis) are the only commands which apply to the general loading of the model, there is no such option to specify over the z-axis. However, you could specify the x- and y-axis on such way that you are at the same specific point if you would have a z-axis option, but it's a tough job.
However, the animpart and bones-related commands do have a z-axis function.

Neither has the boundingbox a z-axis...

reply to this message

#4: ..

by chasester on 04/07/2014 00:55

lolz

...

ok well thanx for the help Ya i planing on adding in a real physics engine (probably bullet) but this would mean i would have to fix this first so that the physics can work correctly :)

thanx
Chasester

reply to this message

#5: ..

by raz on 04/07/2014 04:07

Tesseract allows full 3D rotation of mapmodels. Maybe start there.

reply to this message

#6: ..

by chasester on 04/07/2014 04:13

it does ?? what version ?? Cuz im using the sauer/tesseract (github) release, is it in there and im just missing it :)

chasester

reply to this message

#7: Re: ..

by raz on 04/07/2014 13:08, refers to #6

github died ages ago, go to tesseract.gg

reply to this message

#8: ..

by chasester on 04/08/2014 04:47

i know :p

but is it in the github version .. because if not will have to integrate my current code into the new tesseract svn code :0

reply to this message

#9: Re: ..

by raz on 04/08/2014 15:37, refers to #8

what part of "git died off" do you not get? :p

of course you will have to move to svn you dum dum.

reply to this message

#10: ..

by chasester on 04/08/2014 21:26

hehe just trying to save work ... i dont need the other tesseract modifications (honestly i dont know what they are) but i doubt they are going in the same direction i am going.

Either way i was just wondering when it was added, and if it was in the github version .. cuz if it is already in there then it would mean about 5 or 6 (or more) hours of not having to integrate into the newer versions.

There's nothing dumb about trying to save time :)

chasester

reply to this message

   Board Index   


Unvalidated accounts can only reply to the 'Permanent Threads' section!


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
53765283 visitors requested 71534562 pages
page created in 0.016 seconds using 10 queries
hosted by Boost Digital