Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Set Sprite onto Object Plane

Author
Message
Lokiii
16
Years of Service
User Offline
Joined: 26th Oct 2008
Location:
Posted: 31st Oct 2008 20:52
Hey,

I'm trying to make an attack effect in 3D. When my character shoots/swings weapon, I want to generate an object plane and send it into the enemy. Now I can do that, no problem, my problem lies in texturing(sp?) the plane. Ideally, I'd like to somehow animate the texture.

Is it possible to assign a sprite as a texture to an object?

I've tried using an image as a texture for a plane, but rather then seeing the actually image on the plane, I see a weird square.

Also, I've made a simple character in Cinema 4D, textured him and exported him as a .x file. I can load him just fine, but all his textures are messed up. Is there a way for me to correct the textures on him?

I've attached an image of what I'm talking about.

Any advice is greatly appreciated!

-Loki

[img]www.asivak.com/katana.gif [/img]

Attachments

Login to view attachments
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 3rd Nov 2008 21:51
Quote: "Is it possible to assign a sprite as a texture to an object?"

No, but it is possible to animate a texture directly.

The simplest and slowest way is to have your images loaded separately, and to retexture the object whenever you want your animation updated.

The better way is to use all your animations to make a single texture strip and to scale and scroll the texture of the plain.

I don't have the GDK installed right now, so you'll have to make do with DBPro code:


I'm afraid that it's a little blocky because I've switched off filtering for the object - if you enable filtering again, make sure that you include a transparent gap between the individual images and rescale to avoid bleeding of the textures between images.

Login to post a reply

Server time is: 2024-11-25 05:45:43
Your offset time is: 2024-11-25 05:45:43