Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (580)
games submitted by our members
Games in WIP (500)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Splatting and Decal node  (Read 2456 times)
0 Members and 1 Guest are viewing this topic.
Offline Daath

Junior Member




Java games rock!


« Posted 2003-11-19 20:09:09 »

Just wanna see if anybody has tried to use texture splatting and possibly Decal node. From comment in decal node class ine can see the same comment as it was in Java3d and that is - no guarantee that children(layears) will be rendered in the specified order... Now if one to use this for splatting then is this dead end approach, if there any better way or has I got this whole thing just plain wrong? .. thanks for any comments
Offline kevglass

JGO Kernel


Medals: 85
Projects: 25


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #1 - Posted 2003-11-19 20:13:56 »

I think the splatting in cosm is done by generating bespoke textures for each tile based on the materials as opposed to decalling.. at least I thought that from a post on Java 3D mailing list some time ago..

Kev

Offline endolf

JGO Knight


Medals: 7
Projects: 1


Current project release date: sometime in 3003


« Reply #2 - Posted 2003-11-19 20:15:21 »

Hi
 I could be wrong on this, i've not done it myself, but if i recall from the java3d mailing lists and various documentation, a few poeple were doing it by either precombining all the textures on startup/area load, and then just using that one texture, or having the landscape objects duplicated in an ordered group (so you *could* guaruntee the render order) and then applying the different textures to the appropriate levels.

HTH

Endolf

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Daath

Junior Member




Java games rock!


« Reply #3 - Posted 2003-11-19 20:30:35 »

Yep I was thinking of pre-processing tectures either during actual texture creation or perhaps during strart-up - either ways is ok I think.( even though it is a bit non-flexible).  But then question is why would we have Decal node if there is no practical use for it. No sure but I think there is z-buffer issue associate  with it and that is tied to how many texture unit states can be handled by the card - but that could be programmatically handled, couldn't it?
Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Reply #4 - Posted 2003-11-19 21:00:59 »

Quote
But then question is while would we have Decal node if there is no practical use for it.


DecalGroup there for now only for compatibility reasons, and Xith3D now exploits fallback statement from Java3D docs:

Quote
An implementation of Java 3D may fall back to treating DecalGroup node as an OrderedGroup node.


BTW, I personally was never using [or even trying to use] actual applications for DecalGroup, so if somebody will explain how it should work and give some example [say, with test code using Java3D] why this node needed, we can add its functionality.

Yuri

Yuri Vl. Gushchin
JProof Group
Offline Daath

Junior Member




Java games rock!


« Reply #5 - Posted 2003-11-19 21:25:30 »

Ok I put into subject Decal node, but in fact I was trying to get some smarts from folk how to go about more realistically looking textures. For now I have used one texture and separate spline function to feed boundary based vertex coloring to get some detail on stones and streets and was happy with the result BUT those who saw it are telling me - not good enough - so I have started looking into other methods and thought textures splatting might be way to go. And once I firured it out and testing in jogl I had to move it scene-graph world reality and run into Decal node which I have never used in Java3D either. So I have no special interests in implementing this node in xith3d, I just trying to improve on my texturing. So basically I would welcome any ideas and they may have nothing to do with Decal node whatsoever.
Offline DavidYazel

Junior Member




Java games rock!


« Reply #6 - Posted 2003-11-20 01:15:37 »

We use bloom's splatter algorithm.  We offline generate small alpha images which are used to blend one texture on top of another for each tile.  The blending is done entirely on the graphics card.

David Yazel
Xith3D Project Founder
http://xith3d.dev.java.net

It may look complicated, but in the end it is just a bunch of triangles
Offline Daath

Junior Member




Java games rock!


« Reply #7 - Posted 2003-11-20 13:47:30 »

Quote
We use bloom's splatter algorithm.  We offline generate small alpha images which are used to blend one texture on top of another for each tile.  The blending is done entirely on the graphics card.



 Thanks a lot Dave. I found link on Bloom's algorithm through vterrain and it is quite interesting! ( been to that site countless time but never noticed that one  Smiley)
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (50 views)
2014-04-15 18:08:23

BurntPizza (46 views)
2014-04-15 03:46:01

UprightPath (62 views)
2014-04-14 17:39:50

UprightPath (44 views)
2014-04-14 17:35:47

Porlus (61 views)
2014-04-14 15:48:38

tom_mai78101 (84 views)
2014-04-10 04:04:31

BurntPizza (142 views)
2014-04-08 23:06:04

tom_mai78101 (242 views)
2014-04-05 13:34:39

trollwarrior1 (201 views)
2014-04-04 12:06:45

CJLetsGame (208 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!