Search found 18 matches

by Lunacore
Sun Apr 10, 2011 4:10 pm
Forum: Off-topic
Topic: use three Displays on one card?
Replies: 4
Views: 863

Did you connect them on different interfaces (DVI, VGA, HDMI) )or all on displayports?
by Lunacore
Sun Apr 10, 2011 3:21 pm
Forum: Off-topic
Topic: use three Displays on one card?
Replies: 4
Views: 863

use three Displays on one card?

In my computer is a HD5970 graphic card from sapphire. It has 2x DVI and 1x mini displayport. At the moment I use two screens (one on each DVI). Can I connect a third screen on the displayport or will it not work?
by Lunacore
Sat Apr 09, 2011 1:16 pm
Forum: Beginners Help
Topic: How to set .x format file's animation
Replies: 4
Views: 524

I don't know, if it works with names, but you can use:
IAnimatedMeshSceneNode->setFrameLoop(s32,s32) and for only one loop IAnimatedMeshSceneNode->setLoopMode(bool)
But therefore you have to know the exact framenumbers from your different animations.
by Lunacore
Sun Mar 27, 2011 12:22 pm
Forum: Off-topic
Topic: Simple virus?
Replies: 13
Views: 1923

Simple virus?

Does someone use DEV-CPP and (actual) Avira? I created a new console-project with a simple code: #include <cstdlib> #include <iostream> using namespace std; int main() { cout<<"test"; system("PAUSE"); return EXIT_SUCCESS; } After compiling, my Avira tells me, project1.exe is a vi...
by Lunacore
Sun Mar 27, 2011 12:53 am
Forum: Off-topic
Topic: dev-cpp and mysql
Replies: 2
Views: 1408

dev-cpp and mysql

I've searched the web but I didn't find an answer to the following problem: I want to make a connection to my database (MYSQL 5.5), but don't get the first step. #include <winsock2.h> #include <mysql.h> using namespace std; MYSQL mysql; int main() { mysql_init(&mysql); return 0; } I linked the f...
by Lunacore
Fri Mar 25, 2011 6:46 pm
Forum: Beginners Help
Topic: Move in the direction your node is pointing? [SOLVED]
Replies: 9
Views: 1306

Ohh, I see in the API virtual s32 irr::video::IVideoDriver::getFPS ( ) const [pure virtual] Returns current frames per second value. This value is updated approximately every 1.5 seconds and is only intended to provide a rough guide to the average frame rate.. It is not suitable for use in performin...
by Lunacore
Fri Mar 25, 2011 1:40 pm
Forum: Beginners Help
Topic: Move in the direction your node is pointing? [SOLVED]
Replies: 9
Views: 1306

I use math functions for it: vector3df Pos = Object->getPosition(); vector3df Rot = Object->getRotation(); u32 fps = driver->getFPS(); //Calculate Pos.X -= sin(Rot.Y*PI/180)*60/fps; Pos.Z -= cos(Rot.Y*PI/180)*60/fps; Object->setPosition(Pos); Object->updateAbsolutePosition();
by Lunacore
Wed Mar 16, 2011 7:33 pm
Forum: Beginners Help
Topic: Falling attached objects
Replies: 5
Views: 460

I updated all nodes (parents and children), but the problem still exist. Here a little cutscene, what I mean: Youtube Another problem: On the first program start, only the hair has the exact position while falling (like in the video). On another program start without changing anything, only the shie...
by Lunacore
Wed Mar 16, 2011 6:50 pm
Forum: Beginners Help
Topic: Falling attached objects
Replies: 5
Views: 460

I move only through setPosition() and setRotation on Player[0], weapons and hair will move automatically. This is not the problem. As shown above I apply the gravity only to my player character, because the position of the attached objects are relpative to the characters position. anim[0] = smgr->cr...
by Lunacore
Wed Mar 16, 2011 6:25 pm
Forum: Beginners Help
Topic: Falling attached objects
Replies: 5
Views: 460

Falling attached objects

My new problem, i get, is the following: On setPosition, my player and all objects attached on it will change it's position, but while my player is falling due to gravity, the attached objects are falling slower until the player reaches the ground. http://www.abload.de/img/problem217xn.jpg //Load me...
by Lunacore
Mon Mar 14, 2011 11:53 pm
Forum: Beginners Help
Topic: [Solved]Shaded objects in Tutorial 8
Replies: 1
Views: 230

[Solved]Shaded objects in Tutorial 8

I read the tutorial 8 about shadows and try to use it on my own. But something is different: http://h-4.abload.de/img/problemshadowszpws.jpg Picture above shows dwarf.x and player.ms3d While the lightnode is behind both, the dwarf is getting a little bit darker in front, but my Player and all other ...
by Lunacore
Mon Feb 28, 2011 11:49 am
Forum: Beginners Help
Topic: GetMesh() with pointer instead of strings
Replies: 11
Views: 1001

But the documentation of createMemoryReadFile shows virtual IReadFile* irr::io::IFileSystem::createMemoryReadFile ( void * memory, s32 len, const path & fileName, bool deleteMemoryWhenDropped = false ) memory ,: A pointer to the start of the file in memory So I use the pointer of the temporary f...
by Lunacore
Sun Feb 27, 2011 11:02 pm
Forum: Beginners Help
Topic: GetMesh() with pointer instead of strings
Replies: 11
Views: 1001

No, i don't want to use a FileArchive like *.zip or others. Just the single files. The code was only an example and has nothing to do with my intention. I only try to load a file into the memory and use it from there and not from my harddrive. The code shown above should realize this, but it doesn't...
by Lunacore
Sun Feb 27, 2011 10:02 pm
Forum: Beginners Help
Topic: GetMesh() with pointer instead of strings
Replies: 11
Views: 1001

By using createMemoryReadFile I get another problem with this example code: FILE* test = fopen("./Models/Figur.ms3d","rb"); //first file on harddrive FILE* test2 = tmpfile(); //second file on memory //get filesize fseek(test, 0, SEEK_END); int FileSize=ftell(test); fseek(test, 0,...
by Lunacore
Sun Feb 27, 2011 5:35 pm
Forum: Beginners Help
Topic: GetMesh() with pointer instead of strings
Replies: 11
Views: 1001

Okay, I have searched for createMemoryReadFile and it really seems to be a solution. But why do I need "const path & fileName"?