Search found 15 matches

by locosoftware
Sat Mar 29, 2008 4:46 am
Forum: Code Snippets
Topic: Texture Splatting Effect Without Pixel Shader
Replies: 20
Views: 14016

I modified the demo code:

#include <irrlicht.h>
#include <iostream>
#include <windows.h>

using namespace irr;

#pragma comment(lib, "Irrlicht.lib")


class CSampleSceneNode : public scene::ISceneNode
{
core::aabbox3d<f32> Box;
video::S3DVertex2TCoords Vertices[4];
video::SMaterial Material ...
by locosoftware
Fri Mar 28, 2008 11:51 am
Forum: Code Snippets
Topic: Texture Splatting Effect Without Pixel Shader
Replies: 20
Views: 14016

I think that I should write a class for texture splattiong without pixel shader for easy to use and can add any number of texture to be blended. Of cource, this solution is slower than pixel shader one.
by locosoftware
Fri Mar 28, 2008 3:03 am
Forum: Code Snippets
Topic: Texture Splatting Effect Without Pixel Shader
Replies: 20
Views: 14016

I curiously want to know BlindSide's solution. :shock:
by locosoftware
Fri Mar 28, 2008 12:54 am
Forum: Beginners Help
Topic: Terrain Blend Map help
Replies: 3
Views: 556

You mean texture splatting:
http://www.gamedev.net/reference/articles/article2238.asp

Here's my solution without pixl shader.(But slower.)
http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?p=151950#151950

And Here's some reference:
http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t ...
by locosoftware
Thu Mar 27, 2008 10:53 pm
Forum: Code Snippets
Topic: Texture Splatting Effect Without Pixel Shader
Replies: 20
Views: 14016

Could we get some screenshots, please?


The Screenshot is here:
http://lcgamestudio.spaces.live.com/photos/cns!107BA0E26B42D45F!120/

And can download code:

http://uploader.polorix.net//files/1431/Texture%20Splatting.zip
and modified engine code here:
http://uploader.polorix.net//files ...
by locosoftware
Thu Mar 27, 2008 9:15 pm
Forum: Code Snippets
Topic: Texture Splatting Effect Without Pixel Shader
Replies: 20
Views: 14016

Here is the D3D8 implementation:
1.Add the CD3D8MaterialRenderer_SPLATTING class in CD3D8MaterialRenderer.h file:


//=====================================locosoftware added=================================================

//! For texture splatting without pixelshader
class CD3D8MaterialRenderer ...
by locosoftware
Thu Mar 27, 2008 9:02 pm
Forum: Code Snippets
Topic: Texture Splatting Effect Without Pixel Shader
Replies: 20
Views: 14016

And to use it:

#include <irrlicht.h>
#include <iostream>
#include <windows.h>

using namespace irr;

#pragma comment(lib, "Irrlicht.lib")


class CSampleSceneNode : public scene::ISceneNode
{
core::aabbox3d<f32> Box;
video::S3DVertex2TCoords Vertices[4];
video::SMaterial Material;

public ...
by locosoftware
Thu Mar 27, 2008 9:01 pm
Forum: Code Snippets
Topic: Texture Splatting Effect Without Pixel Shader
Replies: 20
Views: 14016

Texture Splatting Effect Without Pixel Shader

First I got an idea with http://downloads.gamedev.net/features/hardcore/splatting/TextureSplattingDemo.zip in Direct3D 9.

The Screenshot is here:
http://lcgamestudio.spaces.live.com/photos/cns!107BA0E26B42D45F!120/

And can download code:

http://uploader.polorix.net//files/1431/Texture ...
by locosoftware
Wed Mar 26, 2008 6:58 am
Forum: Advanced Help
Topic: Terrain Problem
Replies: 20
Views: 4588

by locosoftware
Wed Mar 26, 2008 6:43 am
Forum: Advanced Help
Topic: Terrain Problem
Replies: 20
Views: 4588

doqkhanh wrote:
locosoftware wrote:the problem has been solved....
May you share your solution with Irrlicht engine?
The effect is still unsuccessful. :cry:
by locosoftware
Wed Mar 26, 2008 6:36 am
Forum: Advanced Help
Topic: Terrain Problem
Replies: 20
Views: 4588

I'm working on something very similar:

http://irrlichtirc.g0dsoft.com/BlindSide/terrainPaint1.JPG

It can blend up to 32 different kinds of textures on a terrain's surface.

Yes! This effect is exactly I want. But I didn't figure out how to implement it.
May you share your solution with ...
by locosoftware
Tue Mar 25, 2008 10:00 am
Forum: Advanced Help
Topic: Terrain Problem
Replies: 20
Views: 4588

the problem has been solved....
by locosoftware
Tue Mar 25, 2008 9:16 am
Forum: Advanced Help
Topic: Terrain Problem
Replies: 20
Views: 4588

There's a good example in http://www.gameprojects.com/project/?id=8fc946fc5f with XNA Framework 2.0. But it's only support four texture blending. I want to make a terrain editor and can paint many textures on the terrain with irrlicht.
by locosoftware
Tue Mar 25, 2008 7:28 am
Forum: Advanced Help
Topic: Terrain Problem
Replies: 20
Views: 4588

Terrain Problem

I want to known how to blend different textures on each material's edge. There's many source code on Internet. But they are three or four texture types blend by pixel shader. I mean how can I blend any number of textures on each texture's edge.
The effect like this:
[img]http://www.azure.com.cn ...
by locosoftware
Thu Mar 20, 2008 8:44 pm
Forum: Advanced Help
Topic: Help!!
Replies: 0
Views: 383

Help!!

I want to transform world vertex to screen coordinates by my code. and with each transformed 2d screen point,draw a white rectangle. Here is my code:
(first I added renderPoint() and Modified render() from the CCubeSceneNode class )

CLocoCubeNode.h

#ifndef __LOCO_CUBE_NODE__
#define __LOCO_CUBE ...