Per-object textures for s3o - Page 2

Per-object textures for s3o

Requests for features in the spring code.

Moderator: Moderators

User avatar
Pressure Line
Posts: 2283
Joined: 21 May 2007, 02:09

Re: Per-object textures for s3o

Post by Pressure Line »

exactly rattle.

lets think simple on this, yes AF's grand designs are nice, and would be ultra-cool. But if it takes 6 months for the coding of that to be finished, and the geometry replacement code is finished in 2 week... guess what id rather have (because its all i need.)
User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Re: Per-object textures for s3o

Post by SinbadEV »

In theory, based on what I'm hearing, you could pull together an s3o with a blank or generic texture and replace the texture in game with lua... which would be pretty darned intuitive... I'll wait for someone to do the hard part of creating the needed documentation.
User avatar
Pressure Line
Posts: 2283
Joined: 21 May 2007, 02:09

Re: Per-object textures for s3o

Post by Pressure Line »

that is also possible. could be nice to have a lua widget change unit textures based on the map (ie in s44 have 3 textures, a snow texture (whitewashed army-green), temperate (armygreen) and desert (brown))

BUT thats not the point of this thread!

im throwing ideas at quantum (and anyone else who will stand still long enough), based on looking through the Lua API, and we are coming close to a basic methodology of doing this :D
User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Re: Per-object textures for s3o

Post by SinbadEV »

Pressure Line wrote:BUT thats not the point of this thread!
Maybe you have mis-understood me...

Okay, you have BasePiece and GunPiece right?

You Make "Tank" Which is an s3o with BasePiece and GunPiece in it, then you have lua replace the texture of BasePiece with the BasePiece Texture and replace the GunPiece with the GunPiece Texture... then the model is cobbled together from different pieces and the lua associates those pieces with specific textures.
User avatar
Pressure Line
Posts: 2283
Joined: 21 May 2007, 02:09

Re: Per-object textures for s3o

Post by Pressure Line »

ahhhhhhh. aye. that could be useful. that may infact be the way to go... *investigates*
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Per-object textures for s3o

Post by AF »

What I suggested has already been done using modular weapon units and transport cob code in OTA and spring. It is hardly grand at all and steps towards these types of systems have already been made in lua in other projects.

The difference is that with lua we can avoid cob and handling transport tags entirely as well as having to build them all separately and manually attach modules, it could all be done automatically without the user being aware and we'd get a far more flexible system out of it too.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Re: Per-object textures for s3o

Post by rattle »

AF wrote:The difference is that with lua we can avoid cob and handling transport tags entirely as well as having to build them all separately and manually attach modules, it could all be done automatically without the user being aware and we'd get a far more flexible system out of it too.
Create a working example which can be animated through COB, in one script that is, not one per piece. And a Lua framework while you are at it.

Spring needs an extended model format which supports more than one texture.
And RGBA textures, team color can be read from texture 2's blue channel or from a seperate grayscale image. And easy to setup materials. Think of all the headlights that could have been had.
Of course, that involves lots of work and jc is pretty busy like everyone else. I still think it would be worth it.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: Per-object textures for s3o

Post by KDR_11k »

I would say controlling attached pieces with one COB would need the compiler so we could add a "move <piece> in <part> to x-axis <bla> now" command and such.
User avatar
Pressure Line
Posts: 2283
Joined: 21 May 2007, 02:09

Re: Per-object textures for s3o

Post by Pressure Line »

rattle wrote:I still think it would be worth it.
+âˆŝ for truth
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Per-object textures for s3o

Post by AF »

I understand enough to know what to do but I lack the lua and cob knowledge to actually do it.

( imagine knowing every single aspect of a bridge and going to build it only to find you don't know how to use your hands )
User avatar
aGorm
Posts: 2928
Joined: 12 Jan 2005, 10:25

Re: Per-object textures for s3o

Post by aGorm »

AF wrote:( imagine knowing every single aspect of a bridge and going to build it only to find you don't know how to use your hands )
We should start a book on his analogies...

aGorm

(sorry for off topic)
User avatar
Pressure Line
Posts: 2283
Joined: 21 May 2007, 02:09

Re: Per-object textures for s3o

Post by Pressure Line »

im part of the way through the most basic form of this :D

i do not know how well its going to work, but i figure if i can at least get the ball rolling, more competent people will be able to guide me towards better ways of doing this :D
User avatar
kiki
Posts: 859
Joined: 05 Nov 2007, 03:06

Re: Per-object textures for s3o

Post by kiki »

AF wrote:imo it would be far more useful to be able to specify external s3o models as objects inside an s3o, and even have the option to swap them out ingame using lua for other pieces.

This way you get the multiple uv maps you're requesting, and you also allow for a truly enormous amount of flexibility we would have otherwise missed out on, ranging from custom flags and banners on units, earth 2150 component designing of units, to extreme animations and transformations by adding and removing new premodelled geometry on the fly.

Of course one could argue that this is already possible using lua gadgets.
Yes, very important for me, to keep down size and allow custom weapons systems for the units of my praetorian faction in UA. Thus eliminating messy transport work-arounds (ala Blox).
User avatar
Pressure Line
Posts: 2283
Joined: 21 May 2007, 02:09

Re: Per-object textures for s3o

Post by Pressure Line »

Pressure Line wrote:im part of the way through the most basic form of this :D

i do not know how well its going to work, but i figure if i can at least get the ball rolling, more competent people will be able to guide me towards better ways of doing this :D
progress report! and pictures!

i have successfully converted a model into a .lua file. and now have managed to draw it onto a unit :D

Image

theres still a bit of work to go, but its getting there :D

*edit* now with 100% more shading!

Image
Last edited by Pressure Line on 06 Jan 2008, 11:09, edited 1 time in total.
User avatar
Pressure Line
Posts: 2283
Joined: 21 May 2007, 02:09

Re: Per-object textures for s3o

Post by Pressure Line »

dbl post for great thanks!

major props to quantum and jK for all their help so far! as well as trepan, for writing the widgets i cannibalised to make what i have so far.
User avatar
Pressure Line
Posts: 2283
Joined: 21 May 2007, 02:09

Re: Per-object textures for s3o

Post by Pressure Line »

gg. triple post. oh well.

Image

with the texture drawn onto the fuel tanks. one last bug to fix, then im all set :D
User avatar
Pressure Line
Posts: 2283
Joined: 21 May 2007, 02:09

Re: Per-object textures for s3o

Post by Pressure Line »

quadpost ;_; what ive done so far is now availible here.
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Re: Per-object textures for s3o

Post by Peet »

Does it [is it even possible to?] z-sort with terrain and features water and other units?
User avatar
Pressure Line
Posts: 2283
Joined: 21 May 2007, 02:09

Re: Per-object textures for s3o

Post by Pressure Line »

as far as my testing has shown it gets drawn just like a unit does. ie; behind terrain, features and under water (assuming that the unit its rendered onto is also behind these things)

if thats what you are asking.
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Re: Per-object textures for s3o

Post by Peet »

Nice :-)
Post Reply

Return to “Feature Requests”