No textures rendered unless SOFTWARE method used

Irrlicht.Net is no longer developed or supported, Irrlicht.Net Cross Platform is a much more complete wrapper. Please ask your C# related questions on their forums first.
Locked
chrisn812
Posts: 1
Joined: Mon Sep 18, 2006 8:08 pm

No textures rendered unless SOFTWARE method used

Post by chrisn812 »

I'm having an issue with my textures not displaying unless I'm using SOFTWARE rendering. I've tried this on 3 different computers. Running VS 2005 c# project. If I use software things look good, if I use DIRECT3D9(8) or OPENGL i get the SceneNodes just no textures on them. I'm in the process now of downloading the DX SDK to try and recompile the library to see if that has any effect.

Any ideas?

Thanks
Hydrael
Posts: 7
Joined: Thu Jan 18, 2007 6:09 pm

Post by Hydrael »

Hey there,

I have the same problem and no idea what could be the cause.
Did you (chrisn812) find out what the problem was, or does anyone else have an idea?

I'm not using multithreading or any other fancy things.

Can anyone help?
Thanks a lot in advance
Hydrael
Posts: 7
Joined: Thu Jan 18, 2007 6:09 pm

Post by Hydrael »

As an addition: I'm using some minimalized code here, and it still isn't working :/

Code: Select all

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using IrrlichtNETCP;

namespace Muh
{
    public partial class Form1 : Form
    {
        private IrrlichtDevice Device;
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            Device = new IrrlichtDevice(DriverType.OpenGL, new Dimension2D(640, 640), 32, false, false, false, false);
            Device.SceneManager.AddCameraSceneNodeMaya(null, -250, 100, 100, -1);
            AnimatedMesh Mesh = Device.SceneManager.GetMesh("C:\\fighter.x");
            
            Device.SceneManager.AddAnimatedMeshSceneNode(Mesh);

            while (Device.Run())
            {
                Device.VideoDriver.BeginScene(true, true, new IrrlichtNETCP.Color(255,255,255,255));
                Device.SceneManager.DrawAll();             
                Device.VideoDriver.EndScene();
            } 
        }
    }
}
This code is based on IrrNet CP, because I wanted to see if that works any better.
I'm getting the same result on both wrappers:
Image

Doesn't anyone have any ideas?
noone88
Posts: 49
Joined: Sat May 27, 2006 3:28 pm

Post by noone88 »

turn the lightning flag of the node off
Locked