wrong textures?[FIXED]

wrong textures?[FIXED]

Share and discuss visual creations and creation practices like texturing, modelling and musing on the meaning of life.

Moderators: MR.D, Moderators

Post Reply
wolas
Posts: 112
Joined: 30 Jul 2010, 20:40

wrong textures?[FIXED]

Post by wolas »

Under upspring my feature appears just fine, but in spring it changes colours tried dds -> in spring almost white also it fades out very quiclkly somehing like distance fog where problem can be? tried tga's then in spring it looks kinda blueish but not same as in upsring(absolutely blue)... Where problem could be?
Last edited by wolas on 03 Sep 2011, 13:12, edited 1 time in total.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: wrong textures?

Post by smoth »

screenshot please.
wolas
Posts: 112
Joined: 30 Jul 2010, 20:40

Re: wrong textures?

Post by wolas »

Image

Image

Image


textures were made using bmps without any transparency. Pure colours black or blue.

It actually looks transparent from far distance moving camera in fps mode it is spotable.

Those lines you see is probably because due screenshot capturing there is no such in game.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: wrong textures?

Post by Forboding Angel »

Use PNG.
Needs moar tex2.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6240
Joined: 29 Apr 2005, 01:14

Re: wrong textures?

Post by FLOZi »

Forboding Angel wrote:Use PNG.
Needs moar tex2.
Tex2 isn't a requirement.
wolas
Posts: 112
Joined: 30 Jul 2010, 20:40

Re: wrong textures?

Post by wolas »

Well in some tutorials it was clearly writen use only bmp's otherwise problems. Will try soon.

Also use PNGS you mean in upsrping when building dds? Also I read that dds is best format isint it.
wolas
Posts: 112
Joined: 30 Jul 2010, 20:40

Re: wrong textures?

Post by wolas »

Could here be something very wrong like it is grass so fade out by zooming out a bit more? Although it is baobab file and it looks perfectly...

Code: Select all

local objectname= "stovas_blue" 

local featureDef	=	{

	name			= "stovas_blue",

	world				="All Worlds",

	description				="where you looking at?",

	object				="stovas_blue.s3o",

	footprintx				=3,

	footprintz				=3,

	height				=90,

	blocking				=true,

	upright				=true,

	hitdensity				=0,

	energy				=50,

	metal				=0,

	damage				=220,

	indestructible			=true,

} 

return lowerkeys({[objectname] = featureDef}) 
I played with size height and so on values.
Also by removing second texture from .s3o gave same effect
wolas
Posts: 112
Joined: 30 Jul 2010, 20:40

Re: wrong textures?

Post by wolas »

Ok using pngs now in spring and upsring model looks same but fade outs immediatly after zooming out... Problem? also doesnt png use 8x more ram? also read in some wiki's... why why why...
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: wrong textures?

Post by jK »

use dds, also note that spring expects to have _all_ mipmaps in those.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: wrong textures?

Post by Forboding Angel »

PNG is superior by far for an entire host of reasons, but saying so always causes a fight.

Use dds if you want mip control (I.E. Obsessively anal to ridiculous amounts of detail that don't matter in practice).

Tex2 isn't a requirement, but you should use a tex2 just for the fact of specular, reflective and glow.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: wrong textures?

Post by knorke »

Ok using pngs now in spring and upsring model looks same but fade outs immediatly after zooming out
did you set model radius&height in the model tab of upspring?

Did you flip the UV map in upspring?
Texture Mapping -> Show UV mapping -> Edit -> Flip UV
This will make the model look strange in Upspring but ingame it will actually look normal.

Maybe it is just that your map has a funny sunlight color and your feature reflects it?
Try on another map, you can spawn the feature with
/cheat
/give stovas_blue
make sure you have LOS on it.
Also try
/give stovas_blue 0
/give stovas_blue 1
/give stovas_blue 2
to give it to different teams and see if the color changes.
wolas
Posts: 112
Joined: 30 Jul 2010, 20:40

Re: wrong textures?

Post by wolas »

Ok I fixed everything. Dont even know what fixed. Before it was .obj now .3ds of course with blender export to 3ds is a bit awkward :) As texture's using png's works fine since they need only 1 colour.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: wrong textures?[FIXED]

Post by smoth »

you probably had the texture in the wrong directory before.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: wrong textures?[FIXED]

Post by knorke »

texture not found would have just caused crash (at least for texture1)
wolas
Posts: 112
Joined: 30 Jul 2010, 20:40

Re: wrong textures?[FIXED]

Post by wolas »

With textures was everything okay. Same directory png solve* problem.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Re: wrong textures?[FIXED]

Post by rattle »

What did you generate the dds with? Make sure that a full set of mip maps get stored when exporting to dds

This is a full set for a 256x256 image. Note that the mips only take up one third of the original image thus the file size will be 33% larger cause only their pixel data gets stored
Image
Post Reply

Return to “Art & Modelling”