Search found 13 matches

by williamlai3a
Thu Mar 27, 2008 4:31 pm
Forum: Advanced Help
Topic: Optimizing the display of texture with alpha
Replies: 14
Views: 1695

Thanks for the quick response. I wish I can scale the texture size into power of 2, but it is not possible in my case, as the image is specified by the user, the most I can do is scaling either its Width or Height to be power of 2, and the other dimension will have to scale proportionally.

Thus, I ...
by williamlai3a
Wed Mar 26, 2008 5:29 am
Forum: Advanced Help
Topic: About passing 3D texture to Pixel Shader
Replies: 3
Views: 1160

About passing 3D texture to Pixel Shader

I am trying to put the fire: Lava example from RenderMonkey into Irrlicht Engine 1.31. Unfortunately, in that example, there is a 128 x 128 x 128 Noise Map in .dds format. I know that irr engine cannot support .dds format. So, I converted the dds file into 128 pieces of .jpg files with each 128 x ...
by williamlai3a
Tue Mar 25, 2008 1:16 pm
Forum: Beginners Help
Topic: About sampler variable in HLSL
Replies: 1
Views: 213

About sampler variable in HLSL

I have 2 sampler variables in my HLSL code.
I would like to ask how can I pass two textures: one is a noise map of 128 X 128, another one is a 1 X 256 gradient map, into the shader by using services->setPixelShaderConstant(...)?

indeed, I have the following in my program:


scene ...
by williamlai3a
Tue Jan 29, 2008 5:46 am
Forum: Advanced Help
Topic: Multiple Event Handler Input
Replies: 8
Views: 983

the event will come to your EventReceiver of cause one by one, but you simply must to remember all the pressed buttons.

Ordinary this is implementing like:
bool keys[256];
this array stores all states of keys.

Then when you receive "pressed" event -- you set proper index to true,
when you ...
by williamlai3a
Sat Jan 26, 2008 11:27 am
Forum: Advanced Help
Topic: Multiple Event Handler Input
Replies: 8
Views: 983

Multiple Event Handler Input

I am implementing the movement of my game character.
I am thinking of making the character move with direction 045 degree when the player is pressing arrow up and right together.

Indeed, my question is how can I know that the player is pressing arrow up and right together, but not pressing arrow up ...
by williamlai3a
Thu Jan 10, 2008 2:38 pm
Forum: Advanced Help
Topic: Blending animations with IAnimatedMeshSceneNode
Replies: 6
Views: 879

Re: Blending animations with IAnimatedMeshSceneNode

I'm looking for a way to blend two animations using IAnimatedMeshSceneNode. By blend I mean have two animations running at the same time affecting different joints different amounts. As in having the legs running while the arms/torso attack.

The only idea I currently have is to manually set the ...
by williamlai3a
Thu Jan 10, 2008 3:41 am
Forum: Advanced Help
Topic: About multiple Animation
Replies: 9
Views: 967

As you've found irrlicht only supports one animator at a time on a node. If you want to have it flying and rotating then you need to code your own animator (as you've also noticed).

To do that you can look at the source for the two animators in question and then basically just integrate the code ...
by williamlai3a
Tue Jan 08, 2008 9:07 am
Forum: Advanced Help
Topic: About multiple Animation
Replies: 9
Views: 967

About multiple Animation

I have tried out the animators, and I found that each time only the newest added animator is active for the mesh to move.

eg: I first added a flystraight animator and then a rotation animator, the mesh will only rotate.

So, I want to ask how can I make the mesh move straight with keeping rotate ...
by williamlai3a
Tue Jan 08, 2008 7:22 am
Forum: Game Programming
Topic: About Massively Multiplayer Online Game Structure
Replies: 15
Views: 4214

Thanks all of you.

Let me explain my plan in more details.

I am still deciding whether to use the irr's own network engine or use another network engine like Raknet.

Do you have any suggestion to me?

Thx a lot
by williamlai3a
Mon Jan 07, 2008 8:35 am
Forum: Game Programming
Topic: About Massively Multiplayer Online Game Structure
Replies: 15
Views: 4214

Dear sir or madam, your question is way to vague to be answered.

To put things in perspective, let me give you an analogy: If I were to say "I would like to build a race car, only not as fast. How should I structure it?" That would be similar to your question. In order for these forums to be ...
by williamlai3a
Mon Jan 07, 2008 6:38 am
Forum: Game Programming
Topic: About Massively Multiplayer Online Game Structure
Replies: 15
Views: 4214

About Massively Multiplayer Online Game Structure

Hi~

I am planning to build a Multiplayer Online Game with the type like World of Warcraft, but surely a mini-size one (only have one server support and mush less maps, NPCs and players).

I would like to ask how should the code be structured? in order to handle the consistance problems and the ...
by williamlai3a
Wed Dec 05, 2007 9:42 am
Forum: Beginners Help
Topic: [Urgent] API for mouse coordinate to world coordinate
Replies: 2
Views: 296

[Urgent] API for mouse coordinate to world coordinate

Is there any API in the game engine can convert the mouse coordinate to world space coordinate??
I mean like glUnProject in OpenGL.
This is because I am develop a game which need the player to click on screen to build things on the map.

Thxs a lot for the one who can answer.
by williamlai3a
Wed Sep 19, 2007 12:03 pm
Forum: Beginners Help
Topic: About DirectX SDK
Replies: 3
Views: 702

About DirectX SDK

I know that complie the engine in VC 2005 needs my machine to install DirectX SDK first. I have downloaded the DirectX SDK - August 2007.
And try to complie the Demo code. However, in the file CD3D8ShaderMaterialRenderer.h, line 13: #include <d3dx8core.h>
fatal error C1083: Cannot open include file ...