Search found 27 matches

by full_newbie
Sun Jul 25, 2010 10:28 pm
Forum: Beginners Help
Topic: How can resize screenshot?
Replies: 4
Views: 550

Thank you Acki
by full_newbie
Sun Jul 25, 2010 7:39 pm
Forum: Beginners Help
Topic: How can resize screenshot?
Replies: 4
Views: 550

I need create a mini screenshot.
For example my screen 1024*768 and i am getting screenshot 1024*768, but i need 100*80.
I am add in Irrlicht source:
COpenGLDriver.cpp:

IImage* COpenGLDriver::createScreenShot(int width,int height)
{
IImage* newImage = new CImage(ECF_R8G8B8, core::dimension2d<u32 ...
by full_newbie
Sun Jul 25, 2010 6:36 pm
Forum: Beginners Help
Topic: How can resize screenshot?
Replies: 4
Views: 550

How can resize screenshot?

This code for create screenshot:

video::IImage* image = device->getVideoDriver()->createScreenShot();
if (image)
{
device->getVideoDriver()->writeImageToFile(image, "screenshot.bmp");
device->getVideoDriver()->writeImageToFile(image, "screenshot.png");
device->getVideoDriver ...
by full_newbie
Thu Jul 15, 2010 5:02 pm
Forum: Beginners Help
Topic: cannot allocate an object of type
Replies: 1
Views: 500

cannot allocate an object of type

I am use http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=22812&postdays=0&postorder=asc&start=0
Please help! I am getting errors:
CGUISlotWindow.cpp:233: error: cannot allocate an object of type `irr::gui::CGUIBringUpSlotWindowButton'
CGUISlotWindow.cpp:233: error: because the following ...
by full_newbie
Thu Jul 15, 2010 1:18 pm
Forum: Code Snippets
Topic: (C++) icon/slot drag/drop rpg style gui
Replies: 21
Views: 18220

Please help! I am getting errors:
CGUISlotWindow.cpp:233: error: cannot allocate an object of type `irr::gui::CGUIBringUpSlotWindowButton'
CGUISlotWindow.cpp:233: error: because the following virtual functions are abstract:
IGUIButton.h:128: error: virtual void irr::gui::IGUIButton::setScaleImage ...
by full_newbie
Mon Jun 21, 2010 9:54 pm
Forum: Project Announcements
Topic: irrCg v0.8 (Initial) - CgFX (Texture States, MultiPass etc.)
Replies: 227
Views: 126122

Hello Nadro . Please help. If I am compile IrrCG, I am getting error:

IrrCg.cpp(239) : error C2039: TextureWrap: ­Ґ пў«пҐвбп з«Ґ­®¬ "irr::video::SMaterialLayer"
c:\irrlicht-1.7.1\include\SMaterialLayer.h(49): б¬. ®Ўкпў«Ґ­ЁҐ 'irr::video::SMaterialLayer'
IrrCg.cpp(534) : error C2039: TextureWrap: ­Ґ ...
by full_newbie
Sun Jun 20, 2010 8:09 pm
Forum: Beginners Help
Topic: How can use shaders in my project
Replies: 1
Views: 472

Please help. I use IrrCG, but I get error's compiling
by full_newbie
Sat Jun 19, 2010 2:52 am
Forum: Beginners Help
Topic: How can use shaders in my project
Replies: 1
Views: 472

How can use shaders in my project

Hello everyone. I don't understand how use shaders.
For example:
This simple shader "water effect":
water.cg:

/**Vertex shader**/
struct app2vert
{
float4 Position:POSITION;
};
struct vert2frag
{
float4 HPosition:POSITION;
float4 TexCoord0:TEXCOORD0;
float4 TexCoord1:TEXCOORD1;
float4 Color0 ...
by full_newbie
Sun Jun 06, 2010 11:03 am
Forum: Beginners Help
Topic: Need help (camera)
Replies: 2
Views: 510

The code works, but works not correctly. The camera incorrectly rotates and when start to run the camera escapes.
by full_newbie
Sun Jun 06, 2010 8:14 am
Forum: Beginners Help
Topic: Need help (camera)
Replies: 2
Views: 510

Need help (camera)

Hello my camera incorect work, please help me.
This code:
main.cpp:

#include <irrlicht.h>
#include "cam/3DP.h"
//#include "terrain/ShTlTerrainSceneNode.h"
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;

enum {UP ...
by full_newbie
Sat Jun 05, 2010 1:04 pm
Forum: Beginners Help
Topic: Incorect work ShTlTerrainSceneNode+camera in IrrAI
Replies: 1
Views: 292

Incorect work ShTlTerrainSceneNode+camera in IrrAI

hello everyone . Please help me.
If i use camera in IrrAI and ShTlTerrainSceneNode begin incorect work ShTlTerrainSceneNode.
This full code:

#include <irrlicht.h>
#include "terrain/ShTlTerrainSceneNode.h"
using namespace irr;
using namespace core;
using namespace scene;
using namespace video ...
by full_newbie
Thu Jun 03, 2010 7:57 am
Forum: Beginners Help
Topic: problem gui and wchar_t*
Replies: 16
Views: 3952

Special sank's greenya for help me.
Theme closed
by full_newbie
Wed Jun 02, 2010 4:18 pm
Forum: Beginners Help
Topic: problem gui and wchar_t*
Replies: 16
Views: 3952

This full code:

#include <irrlicht.h>
#include <iostream>
#include <fstream>
#include <locale>
#include <string>
#include <stdio.h>
typedef int errno_t;

using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
using ...
by full_newbie
Wed Jun 02, 2010 8:58 am
Forum: Advanced Help
Topic: problem gui and wchar_t* (copy)
Replies: 1
Views: 423

problem gui and wchar_t* (copy)

I copy this theme: http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=38682
Please help me. I am not understand. Why don't work?
by full_newbie
Wed Jun 02, 2010 8:52 am
Forum: Beginners Help
Topic: problem gui and wchar_t*
Replies: 16
Views: 3952

I am not stupid. I see text in other encode, no utf-8.
File: utf-8
If i use QT library and this code - all fine work .
If i use this code in console - all fine work .
If i use OGRE and this code - all fine work
If i use Irrlicht and this code - all incorect work .
I see:
http://best-scripts.uz ...