Multiple UV maps for objects / AO texture channel

robn
Posts: 302
Joined: Mon Jul 01, 2013 1:11 am
Location: Melbourne, Australia

Re: Multiple UV maps for objects / AO texture channel

Post by robn »

FluffyFreak wrote:I think we're gonna need to rewrite Tradeships.lua then ;)
I'll get right on that... in two years.
bszlrd
Posts: 1096
Joined: Mon Jul 01, 2013 3:25 pm
Location: Budapest HU

Re: Multiple UV maps for objects / AO texture channel

Post by bszlrd »

I was thinking about those waypoints too. (let's do some derailing? ;D)
One idea was that use armatures for them, separate for each pad, and the bones are what the empties are now. The advantage is that each bone is attached to it's armature, so you can easily move the whole thing around. Also, the name of the armature could be indicating the pad, and the bones would only indicate the stage and /landing/takeoff of the given point. I think it would make it easier to manage them or to get an overview. Also you can define custom shapes for bones, so with a good set of shapes (arrows), it would be easier to visualize the direction and task of the given bone. And if the game would use the numbering format of blender (name.###), then it would be a question of extruding the bones, so you only need to name the first one in the chain, and the incremental naming would handle it from there.

Also if that high amount of bays is a concern right now, I can do a much smaller station first, with like 2 (or 1) large, 4(or 8) medium and and 9 small bays. I intended to do this version too anyway.
FluffyFreak
Posts: 1344
Joined: Tue Jul 02, 2013 1:49 pm
Location: Beeston, Nottinghamshire, GB
Contact:

Re: Multiple UV maps for objects / AO texture channel

Post by FluffyFreak »

robn wrote:
FluffyFreak wrote:I think we're gonna need to rewrite Tradeships.lua then ;)
I'll get right on that... in two years.
Image

I've just taken a look at it (I was compiling ok!!!), I think that a lot of the "Game.system:GetNearbySystems" can be replaced quite easily and thus we won't have such massive impact on the frame times etc. I don't know why the hell it's written that way actually.

My "favourite" (to abuse the word disgracfeully) is around line 383. That can die in a fire!
FluffyFreak
Posts: 1344
Joined: Tue Jul 02, 2013 1:49 pm
Location: Beeston, Nottinghamshire, GB
Contact:

Re: Multiple UV maps for objects / AO texture channel

Post by FluffyFreak »

nozmajner wrote:Also if that high amount of bays is a concern right now, I can do a much smaller station first, with like 2 (or 1) large, 4(or 8) medium and and 9 small bays. I intended to do this version too anyway.
Actually I'm still hoping someone tries to use the full 240 bay support :D
bszlrd
Posts: 1096
Joined: Mon Jul 01, 2013 3:25 pm
Location: Budapest HU

Re: Multiple UV maps for objects / AO texture channel

Post by bszlrd »

There's an O'neill's cylinder lingering in my head. ;)
laarmen
Posts: 34
Joined: Fri Jul 05, 2013 8:49 am

Re: Multiple UV maps for objects / AO texture channel

Post by laarmen »

FluffyFreak wrote: I've just taken a look at it (I was compiling ok!!!), I think that a lot of the "Game.system:GetNearbySystems" can be replaced quite easily and thus we won't have such massive impact on the frame times etc. I don't know why the hell it's written that way actually.
Nobody does. It's like this huge chunk of code your intern wrote. You can probably fix it with ductape when something breaks (well, you *think* you've fixed it anyway) but the hell to tell how it actually works.
FluffyFreak
Posts: 1344
Joined: Tue Jul 02, 2013 1:49 pm
Location: Beeston, Nottinghamshire, GB
Contact:

Re: Multiple UV maps for objects / AO texture channel

Post by FluffyFreak »

Back on topic... the changes I made will need testing and review. I'm certain that there's better ways of doing some parts of it but having to use the "glTexCoordPointer" and associated calls rather than just generic vertex attributes makes it harder to keep the code clean and tidy.
I'm sure someone will have a suggestion of how to clean it up a bit.

Right now my brain is totally dead so I'm calling it a night.
FluffyFreak
Posts: 1344
Joined: Tue Jul 02, 2013 1:49 pm
Location: Beeston, Nottinghamshire, GB
Contact:

Re: Multiple UV maps for objects / AO texture channel

Post by FluffyFreak »

I could also just add the ability to set an AO texture, separate from the 2nd set of UVs stuff.
I.e: it would still use the single set of textures but you could make it lower resolution and start using it.
bszlrd
Posts: 1096
Joined: Mon Jul 01, 2013 3:25 pm
Location: Budapest HU

Re: Multiple UV maps for objects / AO texture channel

Post by bszlrd »

No rush on my side, there's much to model on that station before I start working on the textures. :)
I think I'll update the buildings with AO maps to test out, when you finish it.
FluffyFreak
Posts: 1344
Joined: Tue Jul 02, 2013 1:49 pm
Location: Beeston, Nottinghamshire, GB
Contact:

Re: Multiple UV maps for objects / AO texture channel

Post by FluffyFreak »

I've closed this for now, for my own personal future reference it was my : "fluffyfreak:two-uvs" branch.
Post Reply