You just need to change the transformation matrix.troymac1ure wrote:D/L entity's code. I made one for movement, but my issue is I couldn't get it to size with the camera distance from the object (didn't want a huge gizmo up close and hard to see far away). It kinda worked, but not to my liking, so I just left it by the wayside. It's in it's own class, called GIZMO.CS or something like that. It detected mouse over each movement point and I tried to make it separate from the BSP viewer, so it could be used in other places. It's a base anyways if you want.JacksonCougar wrote:After a few hours of scratching my head and trying to remember how math works again I finally got ray-triangle intersections figured out and working. So now you can click-select things in the 3D viewer directly to select them for editing. Now to figure out how to make a transformation gizmo...
[H2X] Sunfish 2011 - Development Discussion Thread
- XZodia
- Staff
- Posts: 2208
- Joined: Sun Dec 09, 2007 2:09 pm
- Location: UK
- Contact:
Re: [H2X] Sunfish 2011 - Development Discussion Thread
- troymac1ure
- Keeper of Entity
- Posts: 1282
- Joined: Sat Aug 09, 2008 4:16 am
- Location: British Columbia, Canada, eh
- Contact:
Re: [H2X] Sunfish 2011 - Development Discussion Thread
When the transform is drawn, it is drawn, it is called with a scale factor so it can be resized very easily, but my math on the pre-call end is lame.
I did copy the 3dsMax transform gizmo idea and how it works, I just didn't get the sizing right, so I never bothered coding the Scale / Rotation gizmos.
I did copy the 3dsMax transform gizmo idea and how it works, I just didn't get the sizing right, so I never bothered coding the Scale / Rotation gizmos.
- JacksonCougar
- Huurcat
- Posts: 2460
- Joined: Thu Dec 06, 2007 11:30 pm
- Location: Somewhere in Canada
Re: [H2X] Sunfish 2011 - Development Discussion Thread
Took a break from banging my head against a wall trying to get the meta editor working better to go render some collision values.
- JacksonCougar
- Huurcat
- Posts: 2460
- Joined: Thu Dec 06, 2007 11:30 pm
- Location: Somewhere in Canada
Re: [H2X] Sunfish 2011 - Development Discussion Thread
Anybody know of a good BSP algorithm or some related articles for BSP calculation?
- JacksonCougar
- Huurcat
- Posts: 2460
- Joined: Thu Dec 06, 2007 11:30 pm
- Location: Somewhere in Canada
- troymac1ure
- Keeper of Entity
- Posts: 1282
- Joined: Sat Aug 09, 2008 4:16 am
- Location: British Columbia, Canada, eh
- Contact:
Re: [H2X] Sunfish 2011 - Development Discussion Thread
I know what you mean. It gets a bit confusing. I like your diagram though...
-
- Posts: 338
- Joined: Sat Sep 06, 2008 2:36 am
- Location: Mexico
Re: [H2X] Sunfish 2011 - Development Discussion Thread
So did this ever got finished?
We are the last stand.
Aumman Anubis wrote:I'm still trying to figure out how a cat grooming defeats a failing economy.
- NotZachary82
- Posts: 1846
- Joined: Thu Dec 20, 2007 8:39 pm
Re: [H2X] Sunfish 2011 - Development Discussion Thread
As promising as it was in the past, its completion now seems beyond necessary effort :C