Aller au contenu

Photo

Shiny metal


  • Veuillez vous connecter pour répondre
28 réponses à ce sujet

#1
Borden Haelven

Borden Haelven
  • Members
  • 403 messages
How do I make a texture appear shiny? Is it using TXI ?

#2
Rolo Kipp

Rolo Kipp
  • Members
  • 2 791 messages
<covering his...>

If it's on a placeable (like a gorgeous statue of Isis, say), then you actually need to do a couple things.
For the non-static placeable a, put the name of the environment map in the envmap column of the placeables.2da
For those times when all you're getting is static, the envmap has to be declared in a .txi file with the same name as the texture.

In both cases, the texture in question has to have an alpha channel. The more transparent the texture, the shinier it gets.

<...bets>

#3
Borden Haelven

Borden Haelven
  • Members
  • 403 messages
How about if it's on a statue that's part of a tile? (Might make placeable as well ;))

#4
Zwerkules

Zwerkules
  • Members
  • 1 323 messages
If it's part of a tile you need a .txi file for the texture which looks like this:
# Specify an environment map for static geometry.
# Dynamic geometry uses the environment map provided on
# the model.
#
# Default is no environment map

envmaptexture tdm01__ref01
alphamean 0.5

---------------------
You don't need to add the alphamean line, but you need the envmaptexture line with the name of your envmap texture.
You don't need this if you just want to use the envmap texture of the tileset which is defined in the .set file.

#5
Tarot Redhand

Tarot Redhand
  • Members
  • 2 688 messages
What about for creatures. I'm particularly thinking about this skeleton creature on the vault. I could really do with someone updating it from nwn 1.61 to 1.69 and for them to add some optional metallic effects.

TR

#6
_six

_six
  • Members
  • 919 messages
appearance.2da contains an "environment map" field for this purpose. TXI is ignored when it comes to shinyness there. Any dynamic race needs to have environment map set to default though, in order for armour etc to work properly (armour actually uses the environment map setting from the race equipping it).

#7
Borden Haelven

Borden Haelven
  • Members
  • 403 messages
Ok, got nice shininess in toolbox but not in game. Games also crashes on load when model set to non-static.

Image IPB

Image IPB

#8
Rolo Kipp

Rolo Kipp
  • Members
  • 2 791 messages
<smoking a little...>

That's still a tile, right?
Have you added an "a" node and linked th statue to that?
And you have the txi with the same name as the texture and the envmap texture is present (either a standard Bioware envmap or included in the hak)?

<...pensively>

#9
Borden Haelven

Borden Haelven
  • Members
  • 403 messages
It's a placeable atm (for looking at). will do both eventually

#10
Rolo Kipp

Rolo Kipp
  • Members
  • 2 791 messages
<shifting...>

Try adding in an "a" node anyway and set type to tile, like I did my Hom bottle.

Make sure the envmap is listed in the placeable.2da, also. You need both txi & placeable envmap for placeables.

<...gears>

#11
Zwerkules

Zwerkules
  • Members
  • 1 323 messages
Textures bigger than 256x256 with a txi file can cause crashes if they are 'animated' textures like water or if the envmap is bigger than 256x256.
The texture can be any size if it is not distorted like water or lava textures, but if the envmap specified in the txi file is bigger than 256x256 the game will likely crash.

#12
OldTimeRadio

OldTimeRadio
  • Members
  • 1 400 messages
Looking very good, Borden!  You should be able to get a reasonable shadow mesh from a scaled up NPC model, too.

#13
Borden Haelven

Borden Haelven
  • Members
  • 403 messages
what column in 2da? can't find one for envmap.

#14
OldTimeRadio

OldTimeRadio
  • Members
  • 1 400 messages
Reflection column. It's second to last in placeables.2da.

#15
Borden Haelven

Borden Haelven
  • Members
  • 403 messages
Fixed. I used PLC_G_ENV in both the TXI and the placeables 2da. Nice & shiny. Image IPBOh and I used Poser for the original figure, it needed scaling a LOT and optimizing but it's a managable size now. Image IPB
Image IPB

Modifié par Borden Haelven, 13 février 2013 - 11:35 .


#16
dusty.lane

dusty.lane
  • Members
  • 135 messages
Oh my god that is awesome.

#17
OldTimeRadio

OldTimeRadio
  • Members
  • 1 400 messages
Even though you clearly have shadows on, I can't see that highpoly placeable casting a single shadow from its highpoly geometry.  And that's awesome.

:D

I want to throw a concept your way because there are probably still a lot of triangles hanging out on that statue.  Plain textures don't show 'em off at all.  Textures with an envmap do a better job showing them off.  But as fate would have it, because of the very specific nature of your model, there is one other thing that can be done that should knock it even further out of the park.

Grab this archive:
Image IPB

Put otr_trns.tga on your mesh where you have the pure gold set to be.  It's a totally "blank" texture.  Either set the reflection column for the placeable to be vdu_envmap015 or leave the placeable as static and the .txi should kick in.  Make sure you have material overrides ticked in your Aurora Trimesh Modifier for the affected mesh objects so the effect is nice and bright.  If the effect doesn't seem to work, delete the first line fo the .txi but leave the second.

If I'm guessing correctly about what the wireframe of your model looks like and your specific base texture choice, that should make your jaw drop.  It's the same sickness behind this, this and this video.

#18
Borden Haelven

Borden Haelven
  • Members
  • 403 messages
Image IPB

How it looks with OTR's helpful input. :)  www.youtube.com/watch Image IPB

Modifié par Borden Haelven, 14 février 2013 - 03:55 .


#19
Borden Haelven

Borden Haelven
  • Members
  • 403 messages
Wierd problem just turned up. The placeable version will load in my egyptian crypt but not in my new karnak interior tileset. It crashes when loading. Both areas are in same module. Anybody got a clue?

#20
cervantes35

cervantes35
  • Members
  • 291 messages
My guess is your tileset is probably high poly as well and with the total amount of both the tile and the placeable it's a burden which the game cannot support. The egyptian tileset you did was a low poly set that you retexured if I am correct.

#21
OldTimeRadio

OldTimeRadio
  • Members
  • 1 400 messages

Borden Haelven wrote...
Wierd problem just turned up. The placeable version will load in my egyptian crypt but not in my new karnak interior tileset. It crashes when loading. Both areas are in same module. Anybody got a clue?

Could it be...that the instance of the model in the Egyptian crypt is set to static whereas the one in the Karnak interior isn't?  If you're definitely using the same model in each case, that's something that could be different.  Also, the lighting preset in an area will override some types of shadow settings on the client and that can cause a difference in behavior. 

For a model like that, less than 80-ish components, set to static, shadows unticked on all meshes' Aurora Trimesh Modifier and compiled in advance is good prep.  The "processmodels" compiler in here is a good compiler (usually) for a placeable like that.

I've never known NWN to have any kind of cumulative shadow limit: Either the scene completely loads or fails somewhere along the way, on a model by model basis.  This is complicated by other-than-static placeables and viewdistances which will cause them to be loaded and unloaded on the fly but the given here is that it'll be set to static and so will only loaded at level load time and not unloaded.

There's a remote (?) possiblity that a shadow from another object is falling on your placeable, even as static, and causing a problem.  I can't remember off the top of my head what the rules are in that case.

Modifié par OldTimeRadio, 17 février 2013 - 07:34 .


#22
PLUSH HYENA of DOOM

PLUSH HYENA of DOOM
  • Members
  • 788 messages
BEAUTIFUL statue and... what was that about a new Karnak Interior...? I'm drooling untidily now...

#23
TheOneBlackRider

TheOneBlackRider
  • Members
  • 382 messages
Borden: Again a beautiful piece of work!

#24
Rolo Kipp

Rolo Kipp
  • Members
  • 2 791 messages
<grins insincerely...>

PLUSH HYENA of DOOM wrote...
BEAUTIFUL statue and... what was that about a new Karnak Interior...? I'm drooling untidily now...

Just had that carpet cleaned, you know >:-/

Other people drool normally <old men, mostly>
*glares at raven* Do you *have* to interrupt me when I'm chiding the drooling, foaming mass of muscle and bon... hmmm...<no, no. go ahead. but it *is* between you and the door>
Point.
But never underestimate a wily old wizard! <huh? no! boss it's seven stor...>

<...before diving out the window>

#25
Borden Haelven

Borden Haelven
  • Members
  • 403 messages
Image IPB

Drool on...