Aller au contenu

Photo

Tile Magic


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

#26
Rolo Kipp

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

affectDynamic 1?
How does that and nDynamicType compare to tno01_m01_04?

we might try adding lights to other VFX...?

<...out loud>

#27
henesua

henesua
  • Members
  • 3 864 messages
Here's the light nodes (this is the project q version by the way)
node light tno01_m01_04ml1
parent tno01_m01_04
position -1.5 -1.5 8.5
orientation 1.0 0.0 0.0 0.0
wirecolor 0.537255 0.0313726 0.431373
radius 14.0
multiplier 1.0
color 0.639216 0.639216 0.639216
ambientonly 0
nDynamicType 1
affectDynamic 1
shadow 0
lightpriority 5
fadingLight 1
endnode
node light tno01_m01_04ml2
parent tno01_m01_04
position 1.5 1.5 9.0
orientation 1.0 0.0 0.0 0.0
wirecolor 0.0196078 0.521569 0.0196078
radius 5.0
multiplier 1.0
color 0.639216 0.639216 0.639216
ambientonly 0
nDynamicType 1
affectDynamic 1
shadow 0
lightpriority 5
fadingLight 1
endnode

#28
henesua

henesua
  • Members
  • 3 864 messages
deleting the light nodes removed the behavior... if that helps. :)

#29
Rolo Kipp

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

So the on-again/off-again behavior was with nDynamicType 0 and the always on behavior was nDynamicType 1.

Next experiment: Add the nDynamicType 0 light node to another vfx model and see if it lights up :-)
But then... how is the light being triggered? Hitting the walkmesh of the tilemagic tile (that is ignored for walking...)? Or simple proximity?

Might not work for a VFX model that doesn't have a WOK...

But try it on a tile that doesn't have a light.

<...thoughtfully>

Modifié par Rolo Kipp, 15 décembre 2012 - 06:24 .


#30
henesua

henesua
  • Members
  • 3 864 messages
the always on light was always on. The dynamic light would turn partially on when you were at a certain distance, but this did seem to be at the edge of perception.... Although fully on may have been what you are surmising. Let me produce a test tile.

notepad++ to the rescue

#31
Rolo Kipp

Rolo Kipp
  • Members
  • 2 791 messages
<circling closer...>

So it may be a proximity thing, perhaps an extension of the light radius itself (turn on at 200% radius or something).

If so, it *might* be useable to produce the spotlight effect on placeables that Grey Fox was looking for... (though he did find his own solution).

<...to the light>

Modifié par Rolo Kipp, 15 décembre 2012 - 06:56 .


#32
henesua

henesua
  • Members
  • 3 864 messages
Crazy idea:
I'd like to be able to dynamically turn a tile's source lights on and off. It would be interesting to have the lights flash on when a PC enters the tile, and then wink out when they leave....

Would it be possible to take a tile with source lights, and strip out everything but the source lights? I'd then take this MDL and use it as a VFX. The VFX could be applied as TileMagic on the same tile as its original, when the source lights are needed to illuminate, and despawned when they go out.


Crazy idea#2:
Toggle on "OrientWithObject" column for a tilemagic VFX in visualaffects.2da. Would this enable you to rotate the tile magic VFX? I suspect it would. Testing to follow. :)

[edit] "OrientWithGround"... does that cause the VFX to orient with the tile? Hm.....

Modifié par henesua, 16 décembre 2012 - 06:35 .


#33
henesua

henesua
  • Members
  • 3 864 messages
OrientWithObject does enable the VFX to rotate with the object. I'm going to turn it on for my tilemagic.

#34
henesua

henesua
  • Members
  • 3 864 messages
Dangly Mesh works with tilemagic. The animesh of the ocean water for TNO also works.

Just sayin!

[Edit: I was wondering how that animesh works and whether we could tie animations to the "lighton/off" with enter/exit of the tile]

Modifié par henesua, 16 décembre 2012 - 06:04 .


#35
henesua

henesua
  • Members
  • 3 864 messages
hmmm.... just noticed that tilemagic doesn't receive shadows. is that everyone else's experience?

#36
NWN_baba yaga

NWN_baba yaga
  • Members
  • 1 232 messages
cant help you here, never used tilemagic myself. Just saying;)

#37
henesua

henesua
  • Members
  • 3 864 messages
great potential here, especially if tileset makers released some TileMagic VFX assets to go along with it.

For example, you made those beautiful animations in your Ravensclaw Forest tileset, the animations which turn on flowers etc... I think applying them as a VFX would be very interesting because it enables them to be a dynamic feature. Perhaps the VFX flowers only show up during certain months on the game calendar. Or when the forest is healthy and vibrant.

Anyway, I think its a great way to complement an existing tileset.

I'm currently working on dynamic ghostly trees using Six's spectral wood tileset.
I've pulled the water surface vegetation out of some tilesets (deleting all meshes but the plants) so that I can lay it over any water tile... perhaps when a waterway becomes choked.
I also pulled that ocean water with the animesh out (and deleted the sandy bottom) so that I can overlay it on a tidal marsh as rising tide.

Lots of cool ways to use this.

Modifié par henesua, 17 décembre 2012 - 06:33 .


#38
NWN_baba yaga

NWN_baba yaga
  • Members
  • 1 232 messages
so the flowers as visual effects? so you can spawn/ despawn them via scripts right.

Modifié par NWN_baba yaga, 17 décembre 2012 - 06:35 .


#39
henesua

henesua
  • Members
  • 3 864 messages
thats just an example. Could be amazing for trees. Fruti trees. Flowering trees etc....

I've also wondered if applying snow to a tile could be a VFX.....

Modifié par henesua, 17 décembre 2012 - 06:36 .


#40
NWN_baba yaga

NWN_baba yaga
  • Members
  • 1 232 messages
yeah i know :D i just wanted to get your idea clear into my abyss of a brainnnnnnnnnnnnnnnn... more braaaainnnssss...

#41
henesua

henesua
  • Members
  • 3 864 messages
One idea I've thought of for awhile would be an orchard tile in a custom rural tileset or say Q's extended TNO tileset, then accompanying this tile would be VFX's for the flowering on the tree, dropping of the petals on the ground, subsequent fruiting, also coming into leaf, and then dropping of the leaves with leaves sitting on the ground.

its a subtle thing that doesn't affect game play, but goes very far toward "ambiance".

Modifié par henesua, 17 décembre 2012 - 06:49 .


#42
NWN_baba yaga

NWN_baba yaga
  • Members
  • 1 232 messages
NWN farm simulator 2.0 ? whenever i think about this deep ambience i see a bit of ultima ;)

Modifié par NWN_baba yaga, 17 décembre 2012 - 06:50 .


#43
henesua

henesua
  • Members
  • 3 864 messages
lol!

#44
Rolo Kipp

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

Can tilemagic textures override tile textures? Winter? Spring?...

<...out loud>

#45
henesua

henesua
  • Members
  • 3 864 messages
its just a VFX like any other. So its like a coat that the tile puts on, or jewelry.

#46
Zwerkules

Zwerkules
  • Members
  • 1 321 messages
Henesua, this is a very good idea. I always thought it would be nice if turning on animloops could be scripted. Using your idea we could simulate that.
I haven't used tile magic yet. From what I've read here I think that the tile vfx overlays the original tile. It doesn't replace it. Is that right?
So the basic tile would have the ground and a tree without foliage and the tiles used for the tile magic would have the foliage, fruits and emitters, but not the ground and the tree?

#47
henesua

henesua
  • Members
  • 3 864 messages
I think you have it right, Zwerkules.

Some clarification:
Tile Magic is a term that has been used to describe using a tile model as a VFX. The VFX itself is not applied to the tile but to an invisible placeable (typically spawned at a position which enables the VFX to overlay a specific tile).

I have seen that the following features work with these VFX:
Danglymesh
Lights
Animesh

There may be more features but I haven't exhaustively explored this. Also Lights behave in interesting ways. I've noticed that some lights activate when a PC enters the VFX tile. They also seem to partially activate at a distance.

And lets not forget the VFX render differently than other objects. I believe they are not obscurred by Fog, and they appear to disappear at a certain distance from the PC.

One more thing:
since the VFX is being applied to an invisible placeable its position can be adjusted by adjusting the placeable. I think it is best to set the Z height for the VFX to 0.0. That way the builder doesn't have to adjust via scripting the height at which the placeable is spawned. The placeable can get its height from the WOK mesh of the tile it is sitting on which should put the VFX at the exact height required.

Alternatively if a VFX is made for a specific tileset, the affects could keep the same origin as the tile they are intended to overlay. But if a tileset has a raise-lower feature, we'll still have to adjust the VFX height for that.

I suppose there are a few ways to tackle the height problem, and we'll have to put our heads together to come up with the best method.

Modifié par henesua, 17 décembre 2012 - 11:53 .


#48
henesua

henesua
  • Members
  • 3 864 messages
I was thinking. VFX do have some drawbacks with the way that they render.
BUT I believe that some of these drawbacks do not happen with placeables. Placeables are rendered before fog yes? So they are obscured by it whereas VFX are not. Why not do the "animloop" replacements as placeables that we can create in the same manner as most tile magic is. It will overlay a tile, but it will look better in the way it renders because it will be a placeable.

Last minute thought. :) I do not believe it will change the art asset.

Likewise to take advantage of VFX's order in the rendering cycle, glowing animloop elements could be done as VFX. Fireflies in a tree, or the standard horror element of glowing eyes from a swarm of small animals in a tree. Could also work for magical flowers that bloom and glow at night.

Anyway... more ideas.

Modifié par henesua, 18 décembre 2012 - 12:32 .


#49
NowAndZen

NowAndZen
  • Members
  • 16 messages
Can Tilemagic only draw from the stock tilesets, or could it create bits from, say, Six's WildWoods or the expanded Project Q tilesets?

#50
henesua

henesua
  • Members
  • 3 864 messages

NowAndZen wrote...
Can Tilemagic only draw from the stock tilesets, or could it create bits from, say, Six's WildWoods or the expanded Project Q tilesets?


Standard Tilemagic draws upon rows in visualeffects.2da to use as VFX. Vanilla NWN (NWN without HAKs) has a number of rows in visualeffects.2da which use some tiles from the stock tilesets as VFX. If you are searching through the 2da search for "SCENE" and you'll find a number of these rows. Sunjammer found them all and included the row numbers as constants with descriptive labels in his tilemagic include.

You can add additional tiles to visualeffects.2da. I have used a number of tiles from tilesets like Wildwoods and the various Project Q expansions. I've even taken tiles out of a tileset and removed unwanted elements from the tile, then saved it as a renamed copy. I've got a VFX now for just the flowers in the meadow tile from Six's wildwoods, lilypads from Rosenkranz's Immersive Swamp, a couple spectral trees from Six's spectral woods, just the water planes from several tilesets etc...

As I've mentioned above, I've explored all of this further and have decided that placeables are in many instances superior to VFX as a means to implement "TileMagc". Traditionally its been VFX, but a placeable version of a tile which also lacks a PWK can work as well. In this case you'd need to create a custom script which spawns the placeable in just the right position, rather than use the vanilla tilemagic include and functions which spawns an invisible placeable in the center of a tile and applies a VFX to it.

At this point I think the VFX type of TileMagic would be best used with magical animations that synch with a given tile. For example lets say we have a ruined tower feature in a tileset. And on full moons an intact version of the tower rises in a ghostly mist on the spot. So you'd have a shimmery, silvery glowing tower overlaying the ruin, and this could be spawned with a tilemagic affect. Or a similar thing could be done with complicated light sources, and similar VFX animations on a tile. Since you can't turn animations in a tile on or off, spawning the animation as a VFX would work well.

Modifié par henesua, 19 décembre 2012 - 02:35 .