These inquisitive little creatures follow you around, no matter where you go. Not even distressed by the attacks of the blue predators on these lands. Though no one ever saw one attack a Green Jasper particularly.
Visit the link below to have a closer look at the 3D model of the Green Jasper.
So a long while ago i asked a question about effecinet mip offset in a linear memory data array, essentially i wanted to load all the data in one go but still allow access to individual faces or mip levels. The method i used was basically to create a look up table when ever the user created an image that stored pointers into the byte data, that is probably the correct solution, however i did come up with a pieace of useless math today after thinking about it:
inline Uint32 TextureOffset(const TextureDesc& info, Uint32 mipLevel, Uint32 arraySlice, Uint32 byteCount)
Uint32 pow = Mathf::Pow(4, mipLevel);
Uint32 A = byteCount / info.m_ArraySize; // Total bytes to a surface + mips
Uint32 B = CalculateSurfaceSize(info.m_Width, info.m_Height, info.m_Format); // Total bytes to top level surface
return (arraySlice * A) + B + (B * (Mathf::Floor(pow / 3) / pow)); // offset bytes
The above will find the exact offset to the mip and array level, but its waaay to expensive to be useable i think.
Woder what method anyone else would use, i know alot will just create a List or vector of each surface pretty sure thats what nvidia does but it would be nice to be able to load everything into a big bulk container and just dip into the data at the specific offset you need too. The annoying think about the look up is having to loop through and create the offsets to access the data.
I thought an elegant pieace of math would exist but i guess i was wrong xD
I'm doing my bachelor graduation project and it's about a game with somewhat realistic physics simulation. I'd like to dig a bit deeper and find some relevant research papers or books, any suggestions where to start?
thanks a lot!
I am looking for a better way to create 2D / 3D icons for items from 3D models. For example, I have about 120 items in the game.
Now I am creating icons for items as follows:
1)I create a simple script inside the game that will sequentially make a screen shot from the camera and change the item. All this is done on a green background.
2)I put all these screenshots in Photoshop. And for each subject I delete the background, center it on the grid, crop it.
3)I put it into the game. And when building inventory slots with items, I still have to align and scale them because each item has the different size. And I must select all these parameters for each subject manually. It takes too much time.
Does anyone have any ideas how to do this faster? Maybe there is software to create something like that?
Sorry for my English.