Search found 13 matches

by jack
Thu Jan 03, 2008 10:32 pm
Forum: Beginners Help
Topic: Stop a scene node from being drawn?
Replies: 1
Views: 189

Stop a scene node from being drawn?

Hi,

I would like to stop another player from being drawn once they move too far away from me. I am able to identify this case correctly, and I stop processing their movement data.

However, the last movement data I was able to get means their player model remains in this position, stationary until ...
by jack
Thu Jan 03, 2008 7:59 pm
Forum: Beginners Help
Topic: Irrlicht co-ordinates versus bsp map co-ordinates?
Replies: 2
Views: 423

Irrlicht co-ordinates versus bsp map co-ordinates?

Hi,

I'm trying to interface with an AI client to generate non-player character movement. I think the co-ordinate system we are using is different as the AI spawns in random places behind the actual map (ie in the void).

I suspect the bsp co-ordinates are different to the irrlicht co-ordinates. i.e ...
by jack
Tue Dec 04, 2007 2:38 pm
Forum: Beginners Help
Topic: Irrlicht, pthreads and Segmentation Faults [solved]
Replies: 6
Views: 458

With some help from IRC people, it turns out that openGL is not thread safe.

Everything to do with openGL should be done in the same thread. So I change my main thread to do the lock/unlock operators to get the pointer which I need to write the pixel values into. This pointer is a global variable ...
by jack
Tue Dec 04, 2007 1:11 pm
Forum: Beginners Help
Topic: Irrlicht, pthreads and Segmentation Faults [solved]
Replies: 6
Views: 458

Its when I access an irrlicht method by a thread that didn't instantiate the object I'm calling it with that I get a segfault
That isn't enough. If you create an object that is shared across threads, you need to syncronize access to that object from all threads that access it, even the thread that ...
by jack
Tue Dec 04, 2007 12:35 pm
Forum: Beginners Help
Topic: Webcam Capture and Display in Irrlicht [solved]
Replies: 13
Views: 2642

I managed to get it working the way I want. Here is the source if anyone else wants it.

void updateFrame()
{
// Get a new frame
webcam->takePicture();

// Initialise buffers
source_buffer = webcam->dumpPicture();
u8* dest_buffer = (u8*) webcamTexture->lock();

// Copy pixel data from the ...
by jack
Sun Dec 02, 2007 9:17 pm
Forum: Beginners Help
Topic: Webcam Capture and Display in Irrlicht [solved]
Replies: 13
Views: 2642

memcpy can copy any amount of bytes. You tell it the destination and source pointers, and the number of bytes to copy. Note, though, that it's bytes, so you have to multiply by 3 or 4, depending on whether you use RGB8 or RGBA8.
however, it's by far more efficient than the color-per-pixel access, I ...
by jack
Sun Dec 02, 2007 9:16 pm
Forum: Beginners Help
Topic: Irrlicht, pthreads and Segmentation Faults [solved]
Replies: 6
Views: 458

I am using mutexes. :p Its when I access an irrlicht method by a thread that didn't instantiate the object I'm calling it with that I get a segfault. :(
by jack
Sun Dec 02, 2007 6:44 pm
Forum: Beginners Help
Topic: Irrlicht, pthreads and Segmentation Faults [solved]
Replies: 6
Views: 458

Irrlicht, pthreads and Segmentation Faults [solved]

Hi,

I have a multi-threaded application using irrlicht. When I try to access an Irrlicht object in a thread within which it wasn't created I get a segfault.

For instance, a global ITexture* being initialised by a call to device->addTexture(...) in my main threads main() function. (I've tried non ...
by jack
Sun Dec 02, 2007 4:30 pm
Forum: Beginners Help
Topic: Webcam Capture and Display in Irrlicht [solved]
Replies: 13
Views: 2642

Is the memcpy function copying a row of the webcam image to the texture memroy?

I.e. if I'm using RGB values I would be copying (width*3) bytes per memcpy? (where width = number of pixels per row)
by jack
Sun Dec 02, 2007 2:47 pm
Forum: Beginners Help
Topic: Webcam Capture and Display in Irrlicht [solved]
Replies: 13
Views: 2642

Webcam Capture and Display in Irrlicht [solved]

Hi guys,

I've been looking for weeks trying to find a pre-written package that will do this for me. With no luck I've tried implementing it myself.

I am running Linux.

I was able to capture a frame from the webcam. I save this to disk as a jpeg file in my webcam_capture thread.

My main drawing ...
by jack
Tue Nov 27, 2007 2:04 pm
Forum: Beginners Help
Topic: In-game chat - audio/video streaming
Replies: 4
Views: 645

I am currently using a custom-written server to support packet forwarding. The system I am trying to implement is very basic. :p

I've investigated RakNet and I think I wouldn't be able to use my custom-written server to drive the networking? Is it possible to use a subset of RakNet to support the ...
by jack
Mon Nov 26, 2007 9:28 pm
Forum: Beginners Help
Topic: In-game chat - audio/video streaming
Replies: 4
Views: 645

In-game chat - audio/video streaming

Hi everyone,

I'm trying to implement some audio and video streaming for a project I'm working on using Irrlicht.

I was considering using irrKlang for the audio streaming, but I haven't been able to make that work yet.

Does anyone know how I might go about getting users to stream their audio to ...
by jack
Tue Oct 30, 2007 7:51 pm
Forum: Beginners Help
Topic: First Person View - Looking Up and Down
Replies: 4
Views: 636

First Person View - Looking Up and Down

I've looked everywhere for a solution to this, but can't find anything.

If using a first person view to play your game, you would want your viewpoint to be transmitted to all other players of your game so that they can render your player model properly. For example, if you looked up you would want ...