Crystal Space
Welcome, Guest. Please login or register.
November 27, 2014, 06:35:40 pm

Login with username, password and session length
Search:     Advanced search
9026 Posts in 2046 Topics by 9147 Members
Latest Member: Nikitaen
* Home Help Search Login Register
+  Crystal Space
|-+  Recent Posts
Pages: 1 2 3 [4] 5 6 ... 10

 31 
 on: June 13, 2014, 02:57:51 pm 
Started by Knic - Last post by Gabriella95
These posts are really good and definitely beneficial. Great stuff from this part of the internet. This is the best weboard for anyone who wants to know about this subject.
voyance par mail gratuite                   
voyance gratuite par mail                    

 32 
 on: May 03, 2014, 10:58:42 am 
Started by Saomi - Last post by Saomi
I load an Image like using this code in mygui:
Code:
void* CSOpenGLImageLoader::loadImage(int& _width, int& _height, MyGUI::PixelFormat& _format, const std::string& _filename)
{
    std::string fullPath = "/gui/" + _filename;

    csRef<iLoader> loader = csQueryRegistry<iLoader>(_app->GetObjectRegistry());
    csRef<iImage> img = loader->LoadImage(fullPath.c_str());

    if (img)
    {
        _width = img->GetWidth();
        _height = img->GetHeight();
        _format = MyGUI::PixelFormat::R8G8B8A8;

        csRef<iDataBuffer> buffer = img->GetRawData();
        void *ret = malloc(buffer->GetSize());
        memcpy(ret, buffer->GetData(), buffer->GetSize());

        return ret;
    }
    else
    {
        return 0;
    }
}
and my my image's color became so strange.
origin img:

loaded img:

I using MyGUI'S OpenGL render gui,
like this:
Code:
    _renderMgr->RenderView(_view);

    if (_isGUIVisible)
    {
        _glPlatform->getRenderManagerPtr()->drawOneFrame();
    }
Please help me!!thanks
Oh I had test it
and the image is load right,
the problem is caused by the render,
and I had test it,
and now the problem is  why if I render the view,
and then I render my image using csSimplePixmap class,
it will can't dispaly,
but when I move the camera out of the mesh,
it will render the my image right,
which is the problem?

 33 
 on: May 02, 2014, 11:39:32 am 
Started by Saomi - Last post by Saomi
I load an Image like using this code in mygui:
Code:
void* CSOpenGLImageLoader::loadImage(int& _width, int& _height, MyGUI::PixelFormat& _format, const std::string& _filename)
{
    std::string fullPath = "/gui/" + _filename;

    csRef<iLoader> loader = csQueryRegistry<iLoader>(_app->GetObjectRegistry());
    csRef<iImage> img = loader->LoadImage(fullPath.c_str());

    if (img)
    {
        _width = img->GetWidth();
        _height = img->GetHeight();
        _format = MyGUI::PixelFormat::R8G8B8A8;

        csRef<iDataBuffer> buffer = img->GetRawData();
        void *ret = malloc(buffer->GetSize());
        memcpy(ret, buffer->GetData(), buffer->GetSize());

        return ret;
    }
    else
    {
        return 0;
    }
}
and my my image's color became so strange.
origin img:

loaded img:

I using MyGUI'S OpenGL render gui,
like this:
Code:
    _renderMgr->RenderView(_view);

    if (_isGUIVisible)
    {
        _glPlatform->getRenderManagerPtr()->drawOneFrame();
    }
Please help me!!thanks

 34 
 on: May 01, 2014, 11:30:17 am 
Started by Saomi - Last post by Saomi
Ok,
thank,
I will:)

 35 
 on: May 01, 2014, 05:36:53 am 
Started by Saomi - Last post by jorrit
There is always a first time smiley

But anyway, you can ask questions here.

 36 
 on: May 01, 2014, 05:24:30 am 
Started by Saomi - Last post by Saomi
so ,
thanks,
but how can I talk with another,
I had never used IRC and develop mailing list...
I had many question where should I go?

 37 
 on: May 01, 2014, 04:26:53 am 
Started by Saomi - Last post by jorrit
As Title...

CS isn't dying, it is just that these forums aren't used as much. We're active on IRC and also on the develop mailing list. We also just got into GSoC (google summer of code) again so that's also a good thing.

 38 
 on: May 01, 2014, 02:02:20 am 
Started by Saomi - Last post by Saomi
As Title...

 39 
 on: April 30, 2014, 02:09:31 am 
Started by Saomi - Last post by Saomi
I had compile the simple tutorial Simple1.exe which in the CS dir,
but I can't find a tutorial that tell me which is the mini-requisite cfg file for the CS,
so when I put Simple1.exe on my custom dir,
I can't see anything in the balck window,
can you tell me which cfg file is really need by a simplest CS app?

 40 
 on: April 28, 2014, 05:55:05 pm 
Started by Saomi - Last post by Saomi
Hello, I’m new to CS,
and I want to using Jam to build my program,
so I read the CS-Manual,
and I using MSYS to call createproject.sh
but I get this "autoheader: command not found"
although the project has build in the right pos,
but when I call ./configure on my project dir,
it tell me "bash.exe: ./configure: No such file or directory"
what should I do? I had never used linux, so I don't understand something,
I using mingw32, but when I compile my first CS app,
it tell me "undefined reference to `GetStockObject@4"
so I google it,
and somebody tell me add -mwindows to g++ args,
but I can't find where to add g++ args on my IDE(qtcreater),
so I had to link it myself,
after g++.... the exe really generated,
but when I open the exe it tell me "the program stop running", so sad,
so now I had only to using Jam, it's my final hope,
because I had compile the CS-SDK using Jam,
and the exe it generated really work on my win7_64_OS,
so I think may using Jam to build my project, but it may be hard to using Jam with IDE(I don't know how to do,may u know, please tell me,  which I mean is that I can only click build,and then the ide will call Jam to my project...)

Pages: 1 2 3 [4] 5 6 ... 10
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 4.251 seconds with 13 queries.