Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 10:32
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (AndrewAMD, alibaba, fairtrader, ozgur, TipmyPip, Quad), 604 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 3 1 2 3
Re: Transform Object independent of Orientation [Re: TechMuc] #254348
03/02/09 18:00
03/02/09 18:00
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
If I understand you correctly, you are assuming that always at least one axis is rectangular to your scale direction, and that's the reason that the given code is sufficient.

Re: Transform Object independent of Orientation [Re: Pappenheimer] #254351
03/02/09 18:04
03/02/09 18:04
Joined: Jul 2008
Posts: 894
T
TechMuc Offline OP
User
TechMuc  Offline OP
User
T

Joined: Jul 2008
Posts: 894
hmm hmm.. yes you're of course right..

I'll think about the best way to scale an entity.
I just do not like the way WED handles this problem.

Okay but end here, don't want to talk further about the editor.

Thank you all for your great help.

@pappenheimer: i'm not too sure.. for me it also works with non-rectangular entities, but i admit that it doesn't look that good if you scale an object with orientations that are not a multiple of 90.

Last edited by TechMuc; 03/02/09 18:08.
Re: Transform Object independent of Orientation [Re: TechMuc] #254381
03/02/09 21:38
03/02/09 21:38
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
...Vertex Shader?


I only glimpsed over the thread, so maybe this is what you are doing already. But why not just do scaling in the vertex shader? Just pass the scales through the material vectors (mtlSkillX).

Pos = In.Pos * matWorld;
Pos *= mtlSkill1;
Pos *= matViewProj;


EDIT: I still don't really see a reason for this. But if you need it...

Last edited by xXxGuitar511; 03/02/09 21:39.

xXxGuitar511
- Programmer
Re: Transform Object independent of Orientation [Re: TechMuc] #266622
05/18/09 22:10
05/18/09 22:10
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline
User
Carlos3DGS  Offline
User

Joined: Oct 2008
Posts: 513
I have a similar problem, but related to absolute rotation rather than absolute scaling.

any help is welcome, take a look at this thread
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=266620&#Post266620

@TechMuc: Can you put me in contact with the person that gave you the solution?


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Page 3 of 3 1 2 3

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1