Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (549)
Games in Android Showcase (139)
games submitted by our members
Games in WIP (593)
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 2650 times)
0 Members and 1 Guest are viewing this topic.
Offline Daath

Junior Devvie

Java games rock!

« Posted 2003-11-19 19: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 Spiffy Duke »

Medals: 232
Projects: 24
Exp: 18 years

Coder, Trainee Pixel Artist, Game Reviewer

« Reply #1 - Posted 2003-11-19 19: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..


Offline endolf

JGO Coder

Medals: 7
Exp: 15 years

Current project release date: sometime in 3003

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

 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.



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

Junior Devvie

Java games rock!

« Reply #3 - Posted 2003-11-19 19: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 Devvie

Speak Java!

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

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:

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 Vl. Gushchin
JProof Group
Offline Daath

Junior Devvie

Java games rock!

« Reply #5 - Posted 2003-11-19 20: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 Devvie

Java games rock!

« Reply #6 - Posted 2003-11-20 00: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

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

Junior Devvie

Java games rock!

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

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.

Archive (21 views)
2015-01-29 04:26:08

theagentd (21 views)
2015-01-28 15:33:52

GamerIDGoesHere (29 views)
2015-01-27 01:23:23

GamerIDGoesHere (31 views)
2015-01-27 01:22:15

CopyableCougar4 (38 views)
2015-01-27 00:34:41

CopyableCougar4 (23 views)
2015-01-26 04:47:56

Olo (18 views)
2015-01-25 21:26:00

Olo (23 views)
2015-01-25 18:44:22

Robo11 (41 views)
2015-01-25 06:14:26

basil_ (33 views)
2015-01-17 22:29:32
2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21

Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17 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‑
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!