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 » 03 Sep 2011, 00:03

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.
0 x

User avatar
smoth
Posts: 22300
Joined: 13 Jan 2005, 00:46

Re: wrong textures?

Post by smoth » 03 Sep 2011, 00:15

screenshot please.
0 x

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

Re: wrong textures?

Post by wolas » 03 Sep 2011, 00:33

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.
0 x

User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14606
Joined: 17 Nov 2005, 02:43

Re: wrong textures?

Post by Forboding Angel » 03 Sep 2011, 01:15

Use PNG.
Needs moar tex2.
0 x

User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6109
Joined: 29 Apr 2005, 01:14

Re: wrong textures?

Post by FLOZi » 03 Sep 2011, 01:17

Forboding Angel wrote:Use PNG.
Needs moar tex2.
Tex2 isn't a requirement.
0 x

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

Re: wrong textures?

Post by wolas » 03 Sep 2011, 01:31

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.
0 x

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

Re: wrong textures?

Post by wolas » 03 Sep 2011, 01:38

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
0 x

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

Re: wrong textures?

Post by wolas » 03 Sep 2011, 01:53

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...
0 x

User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: wrong textures?

Post by jK » 03 Sep 2011, 03:14

use dds, also note that spring expects to have _all_ mipmaps in those.
0 x

User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14606
Joined: 17 Nov 2005, 02:43

Re: wrong textures?

Post by Forboding Angel » 03 Sep 2011, 04:59

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.
0 x

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: wrong textures?

Post by knorke » 03 Sep 2011, 07:01

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.
0 x

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

Re: wrong textures?

Post by wolas » 03 Sep 2011, 13:11

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.
0 x

User avatar
smoth
Posts: 22300
Joined: 13 Jan 2005, 00:46

Re: wrong textures?[FIXED]

Post by smoth » 03 Sep 2011, 15:59

you probably had the texture in the wrong directory before.
0 x

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: wrong textures?[FIXED]

Post by knorke » 03 Sep 2011, 16:01

texture not found would have just caused crash (at least for texture1)
0 x

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

Re: wrong textures?[FIXED]

Post by wolas » 03 Sep 2011, 16:44

With textures was everything okay. Same directory png solve* problem.
0 x

User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Re: wrong textures?[FIXED]

Post by rattle » 11 Sep 2011, 00:28

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
0 x

Post Reply

Return to “Art & Modelling”