Extracting unitpics from S3Os?

Extracting unitpics from S3Os?

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
hughperkins
AI Developer
Posts: 836
Joined: 17 Oct 2006, 04:14

Extracting unitpics from S3Os?

Post by hughperkins »

Trying to use OpenGL to generate unitpics from S3Os. This is useful for features for example, where there's typically no default unitpic.

Using glReadPixels, which in prototype version simply runs just before SDL's swapbuffers.

For some reason the output is kindof strange, was wondering if anyone has seen this effect before or has any ideas. This is an armflea, in theory:

Upside down is not an issue, but... the strange coloring ,and those wierd striations???

Image
User avatar
hughperkins
AI Developer
Posts: 836
Joined: 17 Oct 2006, 04:14

Post by hughperkins »

Ok nm, turns out was missing a * 4 in the processing code.

Edit: final result:

Image
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

Can we see a larger version? It's kind've hard to evaluate the results with such a small shot.
bwansy
Posts: 385
Joined: 02 May 2006, 05:21

Post by bwansy »

Is that a flea?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

is it supposed to be grayscale or is it just the fleas textures?
User avatar
hughperkins
AI Developer
Posts: 836
Joined: 17 Oct 2006, 04:14

Post by hughperkins »

Argh wrote:Can we see a larger version? It's kind've hard to evaluate the results with such a small shot.
Well, the idea is that it'll go in a new features controlbox in MapDesigner, so you click the feature, then click the map.
AF wrote:is it supposed to be grayscale or is it just the fleas textures?
Partly flea's texture, partly there's supposed to be a teamcolor blended into the flea. For features this isnt an issue, so letting that slide for now.
User avatar
hughperkins
AI Developer
Posts: 836
Joined: 17 Oct 2006, 04:14

Post by hughperkins »

Early glimpse of feature toolbox. There's some corruption going on, but it shows the basic idea. These images are generated on the fly from the S3Os using OpenGL then pasted into GTK.

Image
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

Ah... a 3D, interactive feature-placer! That will definately rule.
User avatar
Maelstrom
Posts: 1950
Joined: 23 Jul 2005, 14:52

Post by Maelstrom »

Damnit i was almost finished with my feature placer :(

Ah well, no doubt yours will be better, in 3D and all. Good luck with it!
User avatar
hughperkins
AI Developer
Posts: 836
Joined: 17 Oct 2006, 04:14

Post by hughperkins »

Well, there's usually a market for multiple tools. Each person has different preferences.
User avatar
Zenka
Posts: 1235
Joined: 05 Oct 2005, 15:29

Post by Zenka »

bwansy wrote:Is that a flea?
Yes it's the flea in XTA. I had it remodeled.
Now If you want a high quality unitpic for s3o models. why not just load them in an 3d editor, import a map (texture and displacement) and render it yourself? Would that me more easyer?
User avatar
Ling_Lover
Posts: 100
Joined: 26 Sep 2006, 11:50

Post by Ling_Lover »

not if you want it to be completely data-driven

this way you can put ANY file into it and see it, your way you have to make your own renders for each
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Most people will find a lot of the models in XTA are far superior to their AA counterparts. Examples being the arm and core commanders, the bulldog, and the fleas.
Post Reply

Return to “Engine”