Search found 17 matches

by elektrikboy
Tue Jan 25, 2022 12:35 pm
Forum: Beginners Help
Topic: Method for dividing an image into tiles
Replies: 12
Views: 934

Re: Method for dividing an image into tiles

thank you man. I just used the std::vector and random_shuffle and it seems to be fullfilling my needs for now. BUT I will try to finish this swap arrays method just for the sake of learning more :)
by elektrikboy
Mon Jan 24, 2022 8:57 pm
Forum: Beginners Help
Topic: Method for dividing an image into tiles
Replies: 12
Views: 934

Re: Method for dividing an image into tiles

ok I've tried something like this...which almost sure is NOT the right way to do it: void CGameCanvas::SwapArrays() { for (int i = 0; i < NUMBER_INDEXES; i++) { int n = (int)RandInRange(0, NUMBER_INDEXES); cout << i << " swap with " << n << endl; do { m_aTexturesSwap.push_back(m_aTextures[...
by elektrikboy
Mon Jan 24, 2022 6:37 pm
Forum: Beginners Help
Topic: Method for dividing an image into tiles
Replies: 12
Views: 934

Re: Method for dividing an image into tiles

bro you are the man!! thank you so much. yes i've crossed path a few times with the "%" but never quite understood it well.
by elektrikboy
Sun Jan 23, 2022 10:50 pm
Forum: Beginners Help
Topic: Method for dividing an image into tiles
Replies: 12
Views: 934

Re: Method for dividing an image into tiles

top! yes I was thinking along those lines...been searching a bit...something like the fischer something method...but yes those two arrays i like! didnt tried yet..only in my head...and yes I also thought about pulling random and then delete...but I stuck there...I mean what if the random index numbe...
by elektrikboy
Sun Jan 23, 2022 4:59 pm
Forum: Beginners Help
Topic: Method for dividing an image into tiles
Replies: 12
Views: 934

Re: Method for dividing an image into tiles

I've tried your method and it works perfectly. and yes the code was confusing because I omitted some stuff eheh now: void CGameCanvas::MakeImages() { int step = IMAGE_WIDTH / NUMBER_X; int max_x = IMAGE_WIDTH / step; int max_y = IMAGE_HEIGHT / step; const dimension2d<u32> dim(step,step); ITexture* t...
by elektrikboy
Sun Jan 23, 2022 2:58 pm
Forum: Beginners Help
Topic: Method for dividing an image into tiles
Replies: 12
Views: 934

Re: Method for dividing an image into tiles

Thank you man! Speed is not an issue as this is to make still rendered images. I was using "m_pSourceImage->copyTo" method I took from some snippet here in this forum but I think I was over complicating things :) I was making it like this: void CGameCanvas::MakeImages() { int a = 0; int st...
by elektrikboy
Sun Jan 23, 2022 12:40 am
Forum: Beginners Help
Topic: Method for dividing an image into tiles
Replies: 12
Views: 934

Method for dividing an image into tiles

Hi guys!
I have an image with 3840x2160 resolution from which I want to make sequencial square images of 20x20 and store them in an array of ITextures to use as texture maps on IMeshSceneNode's.
What's the best method to achieve this?
Thx in advance!
by elektrikboy
Tue Jan 04, 2022 3:58 pm
Forum: Beginners Help
Topic: Saving Output to file.
Replies: 3
Views: 531

Re: Saving Output to file.

Working like a charm bro!! thank you! //Render Scene while (device->run()) if (device->isWindowActive()) { driver->beginScene(true, true, 0); driver->setRenderTarget(m_pRendertarget, true, true, video::SColor(0, 0, 0, 0)); smgr->drawAll(); env->drawAll(); driver->setRenderTarget(0, true, true, 0); s...
by elektrikboy
Thu Dec 30, 2021 6:31 pm
Forum: Beginners Help
Topic: Saving Output to file.
Replies: 3
Views: 531

Re: Saving Output to file.

ok...so maybe it's better to abandon this framework and try to write all in one main function. like for example using and modifying the tutorial 13...this because for me at my level which is noob lol its kinda hard to where should i call "stuff" whithin this IrrWizard framework. I will try...
by elektrikboy
Sun Dec 26, 2021 4:25 pm
Forum: Beginners Help
Topic: Saving Output to file.
Replies: 3
Views: 531

Saving Output to file.

Hi guys. im using the irwizard model with the gamestates, gamemanager etc etc. ive made a simple CGameCanvas class to draw some nodes and now I need to save the output to a file at least 3000x3000 or more. I used 1024x1024 just to test. when i finished with the make nodes function i call this SaveIm...
by elektrikboy
Fri Dec 24, 2021 12:15 pm
Forum: Everything 2d/3d Graphics
Topic: Jittering AI Movement.
Replies: 7
Views: 2640

Re: Jittering AI Movement.

ok thank you very much for your time. i will read and get acquainted and when I have something more coesive we will talk again for sure.
happy holidays!!
by elektrikboy
Fri Dec 24, 2021 12:00 pm
Forum: Beginners Help
Topic: Graphic Card
Replies: 2
Views: 272

Re: Graphic Card

Thx again man!!
It's working perfectly now!
by elektrikboy
Fri Dec 24, 2021 1:47 am
Forum: Beginners Help
Topic: Graphic Card
Replies: 2
Views: 272

Graphic Card

hi guys
noob question again lol
I have a ASUS with i7 and a dedicated nvidia geforce gt 650M (2Gb dedicated) laptop...how can I make Irrlicht use this nvidia instead of Intel integrated video card??
by elektrikboy
Fri Dec 24, 2021 1:14 am
Forum: Everything 2d/3d Graphics
Topic: Jittering AI Movement.
Replies: 7
Views: 2640

Re: Jittering AI Movement.

ahah you got that one right!! hey sorry for the off topic - this is for another project im trying to implement...im trying to make some kind of abstract art here so i thought the only way would be to use some shaders...i want to make my renders look like they we're hand drawed...could you point me s...