Jump to content
  • Advertisement

Search the Community

Showing results for tags 'Textures'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Categories

  • Audio
    • Music and Sound FX
  • Business
    • Business and Law
    • Career Development
    • Production and Management
  • Game Design
    • Game Design and Theory
    • Writing for Games
    • UX for Games
  • Industry
    • Interviews
    • Event Coverage
  • Programming
    • Artificial Intelligence
    • General and Gameplay Programming
    • Graphics and GPU Programming
    • Engines and Middleware
    • Math and Physics
    • Networking and Multiplayer
  • Visual Arts
  • Archive

Categories

  • Audio
  • Visual Arts
  • Programming
  • Writing

Categories

  • Game Dev Loadout
  • Game Dev Unchained

Categories

  • Game Developers Conference
    • GDC 2017
    • GDC 2018
  • Power-Up Digital Games Conference
    • PDGC I: Words of Wisdom
    • PDGC II: The Devs Strike Back
    • PDGC III: Syntax Error

Forums

  • Audio
    • Music and Sound FX
  • Business
    • Games Career Development
    • Production and Management
    • Games Business and Law
  • Game Design
    • Game Design and Theory
    • Writing for Games
  • Programming
    • Artificial Intelligence
    • Engines and Middleware
    • General and Gameplay Programming
    • Graphics and GPU Programming
    • Math and Physics
    • Networking and Multiplayer
  • Visual Arts
    • 2D and 3D Art
    • Critique and Feedback
  • Community
    • GameDev Challenges
    • GDNet+ Member Forum
    • GDNet Lounge
    • GDNet Comments, Suggestions, and Ideas
    • Coding Horrors
    • Your Announcements
    • Hobby Project Classifieds
    • Indie Showcase
    • Article Writing
  • Affiliates
    • NeHe Productions
    • AngelCode
  • Topical
    • Virtual and Augmented Reality
    • News
  • Workshops
    • C# Workshop
    • CPP Workshop
    • Freehand Drawing Workshop
    • Hands-On Interactive Game Development
    • SICP Workshop
    • XNA 4.0 Workshop
  • Archive
    • Topical
    • Affiliates
    • Contests
    • Technical
  • GameDev Challenges's Topics
  • For Beginners's Forum

Calendars

  • Community Calendar
  • Games Industry Events
  • Game Jams
  • GameDev Challenges's Schedule

Blogs

There are no results to display.

There are no results to display.

Product Groups

  • Advertisements
  • GameDev Gear

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Website


Role


Twitter


Github


Twitch


Steam

Found 50 results

  1. I know that there are Vehicle and Car blueprints all over the net on almost every car model that exists and has existed, but surprisingly few textures. To be precise, photo textures of side view, front view and rear view of even common car models is hard to find. Even raster graphics drawn textures are rare. The best that could be found is on the Google Warehouse and typing 'textured car' in the search box. This will give you some good numbers of textured cars and car textures. Google warehouse is also excellent for finding textured buildings and building textures for any region. But where on earth are the vehicle textures?
  2. ShaderMap 4.1 is here and is a major update. It brings with it a lot of new features, changes, and bug fixes. Most exciting is PBR (Physically Based Rendering) Map creation, PBR Materials, and Multi Angle Light Scan nodes. Check out ShaderMap 4.1 here: https://shadermap.com I put a lot of work into this version so I hope everyone enjoys the update.
  3. Hornok Tibor

    Lack of idea for background

    Hello! I new for game developing and to gamedev.net. I hope somebody can point me to the right direction. I developing a vertical shoot em' up and I want to make some non-traditional backgrounds. I want to make something like hyperspace but more cartoonish and colorful, and of course in top-down. i can't find any good example, so if any of you know any way to get good inspiration to make it, thanks!
  4. Cultusfit

    GIMP Alpha Channel packing

    Just grabbed the GIMP program to try to do some channel packing to give myself more optimized textures. I am able to add the alpha channel. But I cant just seem to bring a greyscale image in as my Alpha. Any one familiar with this in this program and able to help me out? I would appreciate it. I know you cant draw directly on the Alpha, you have to use a mask, so i assume i'm over looking how to just pull the image in as the mask?
  5. For two days I have been struggling with trying to draw a image on a plane at the exact point. I have a UV point, however because of how the shaders work, or at least my understanding of it, I the piece of code only effects the current pixel. So I can easily draw gradients, change the color of the pixel at that UV point and all kinds of effects. However the only way I could think of drawing the image was to calculate the four corners from the center point, except after I found these points using 4 "If" branches I have no idea on how to use these points to draw the images. The shader is just a basic shadless vertex and fragment shader. Unlit.
  6. I'm looking for someone i can collaborate with in Unity or UE4, honestly any game engine is fine. My style of art is low to mid poly range, 3rd or 3rd person top down. Dungeon / Wolrd of Warcraft-esk style. Let me know if anyone is looking for group project practice. Lets make a small, simple game to start.Follow up for contact info.Here's a few examples.
  7. Sprint no. 27 is here, and we skipped the sprint 26 on gamedev.net in June as the #WORDSproductions team members sent me a lot of vacation requests over the last few weeks (and I was on holiday, too 😉), so that we could not complete as much items from the sprints as we initially wanted, but we opened up a lot of nice issues either way. Take a look! First, the concept art of the next game scene is finished. The scene we want to recreate after Clearwater's apartement scene has been completed. It looks nice. It's a scene from the book BIZARRE Episode I. Furthermore, we continued texturing the houses of the world-outside-Charlys-apartement-window. We haven’t finished it yet, as it became a little game environment already, with many houses, with streets, street lamps, fences, and so on. We use a nice texturing software and began painting the bricks or the colored cement onto the houses exterior walls. Bit by bit, one by one. We use textures, we photographed in our neighborhood, or we’ve found by accident anywhere in the world. We continued programming Clearwater’s shooting behavior. We implemented some basic shooting mechanics in the player controller using c++. The player is now able to pull his gun which triggers the correct state transition causing the associated animation to play. The logic to control the shooting animation blueprint and aim offset, letting Charly aim at the target he is shooting at, is now in place. We did improve main-character Charly Clearwater’s appearance again, by adapting vertices and textures and light. But, obviously, we won’t stop improving his appearance and behavior until the finished game is published one day, and after that, we’ll permanently upload updates including some nice main-character improvements. 😄 Next, we started modelling Charly Clearwater’s facial animations. As I said, during the colored woman video, we’d published on Halloween last year, the facial animations could not be imported in UE4 caused by a mean Bug. But now I ate the Bug, and the animations can be imported now without any errors. We need some facial expressions for the planned video, but also for some 4k pics of Clearwater, we want to render later on. He’s now able to smile. To be continued… I continued writing the book BIZARRE Epsiode I. It works fluently. No Bugs, no thinking barriers. I’ll keep writing. Our plans for the current sprint 27 are: We'll continue painting walls and modelling houses, trees etc. We'll continue programming Clearwater’s shooting animation and behavior. We need to adjust his pull-the-gun-and-shoot animation. We need to make him look hot and unaffected while killing. We'll continue modelling some relevant facial expressions and import them correctly in UE4, hopefully. Test them. Adapt them. Until they look flawless. We want to shoot a status report video, in which I talk about our successes of the last year and our targets for the next year. In May 2017, the BIZARRE Game project was born and one year after, I pass the year in review. It’s planned to include English subtitles. It is also planned to publish this video in July on YouTube. I’ll post it here, too. Yeah, some props must be done, too. Stuff for the kitchen, some books, a couch. Peanuts. Did I miss something? I think that’s enough. CU
  8. Dark Fantasy Environment and Props Hi GameDevs, I am currently working on a model pack for the Unity Asset Store. I am however not satisfied with the overall look of these game-ready models. There would be many architectual and prop objects from gates and windows to lamps, furniture, decoration etc. The style would be a gloomy, mystical, dark fantasy-inspired look, similar to a dark elf or vampire castle interior. For modeling I use Blender, for texturing Substance Designer and PS. Please take a look at my work and help me figuring out how should I improve the textures. I use the Smoothness / Metallic workflow, and would like to add Ambient Occlusion separately (screen space). I also use Emissive maps where needed (lamps). If you see some obvious flaws in contour, colors, etc please note those too. In these images I threw the objects into Unity, no light setup and compositing was done (I still need to learn those for presenting my stuff). Link to my Sketchfab (here you can see the crystal lamps in 3D). Thank you for your attention!
  9. I'm very new to OpenGL and graphics programming, and there is probably a simple answer to this. I've made a function that defines a grid and used it to make the "ground" of my game. I added the textures, which have a diffuse, specular, and normal map. When viewed closely the textures look fine However, from the side they look very pixelated I would appreciate if someone points me in the right direction as to how to handle this problem, as since i'm a beginner i'm not quite sure what's causing it. I'm not sure if they'd help but the texture params i'm using are: GL_LINEAR_MIPMAP_LINEAR for min filter, GL_LINEAR for mag filter, and i'm using openGL to generate the mipmaps (glGenerateMipmap). Thanks again
  10. Hello everyone, I'm looking for some advice since I have some issues with my textures for my mouse pointer and I'm not sure where to start to look. I have checked everything that I know off and now I'm in need of advice on what to look for in my code when I try to fix it. I have a planet that is rendered, I have a UI that is rendered and I also have a mouse pointer that is rendered. First the planet is rendered, then the UI and then the mouse pointer last. When the planet is done rendering I turn off Z-Buffer and enable Alpha Blending while I render the UI and the Mouse Pointer. In the Mouse Pointers Pixel Shader I look for black color and if that is the case I blend it. But what seems to happen is that it also blends part of the texture that isn't supose to be blended. I'm going to provide some screenshot of the effect. In the first image you can see that the mouse pointer changes color to a more white one when behing infront of the planet. The correct color is the one that is displayed when it's not infron of the planet. The second thing I find weird is that the mouse pointer is behind the ui text even tho it is rendered after. I also tried switching them around and it makes no difference. Also the UI doesn't have the same issues when being above the planet, it's color is displayed as it should. Here comes the Pixel Shader code if that helps anyone get a better grip of the issue: float4 color; color = shaderTexture.Sample(sampleType, input.tex); if(color.b == 0.0f && color.r == 0.0f && color.g == 0.0f) { color.a = 0.0f; } else { color.a = 1.0f; } return color; The UI uses almost the same code, but only checks the r channel of the color but I'm using all 3 channels in the Mouse Pointer due to colors might be abit more off. Should be that if the pixel is black it's should be blended. And it does work, but it's just that somehow it also does something with the parts that shouldn't be blended. Right now I'm leaning towards there being something in the Pixel Shader since I can set all pixels to white and it behaves as it should and creates a white box for me. Any pointers of what kind of issues I'm looking at here and what to search for to find a solution will be appreciated alot Best Regards and Thanks in Advance Toastmastern
  11. Hi all, I'm trying to generate MIP-maps of a 2D-array texture, but only a limited amount of array layers and MIP-levels. For instance, to generate only the first 3 MIP-maps of a single array layer of a large 2D-array. After experimenting with glBlitFramebuffer to generate the MIP-maps manually but still with some sort of hardware acceleration, I ended up with glTextureView which already works with the limited amount of array layers (I can also verify the result in RenderDoc). However, glGenerateMipmap (or glGenerateTextureMipmap) always generates the entire MIP-chain for the specified array layer. Thus, the <numlevels> parameter of glTextureView seems to be ignored in the MIP-map generation process. I also tried to use glTexParameteri(..., GL_TEXTURE_MAX_LEVEL, 3), but this has the same result. Can anyone explain me how to solve this? Here is an example code, how I do it: void GenerateSubMips( GLuint texID, GLenum texTarget, GLenum internalFormat, GLuint baseMipLevel, GLuint numMipLevels, GLuint baseArrayLayer, GLuint numArrayLayers) { GLuint texViewID = 0; glGenTextures(1, &texViewID); glTextureView( texViewID, texTarget, texID, internalFormat, baseMipLevel, numMipLevels, baseArrayLayer, numArrayLayers ); glGenerateTextureMipmap(texViewID); glDeleteTextures(1, &texViewID); } GenerateSubMips( myTex, GL_TEXTURE_2D_ARRAY, GL_RGBA8, 0, 3, // only the first 3 MIP-maps 4, 1 // only one array layer with index 4 ); Thanks and kind regards, Lukas
  12. Louis Brady

    Week One: Basic Geometry

    Week one is done To start off, I'd like to mention that I have no timeline for this project. This project's purpose is to get me more familiarized with game development and implementing Blender obj's into Unity. Then, eventually teaching myself basic coding for a 3d platformer. Continually, I will teach myself how to rig a character, add animation into Unity, add cut scenes, develop GUI's and a smooth user interface. The list is endless as well as standard. Also with this project, I will feel out the process of developing (and finishing) a game which will then allow me to decide if game development is for me. I've always had the idea in the back of my head, so now is the time to discover the truth! Before I get into my update, I would like to add that I have been using Blender and Unity for a few years, but I never completed a game. I did, however, finish a game using GameMaker https://www.newgrounds.com/portal/view/691738. This game will be different. Here is what I have accomplished this week: I was inspired by Ocarina of Time. I saw the buildings, the textures, and the low poly characters and thought "I could totally do something like this with Blender." Mario 64 was always a huge inspiration too, so I revisited some of the levels and noticed that most of the older 64 games used basic geometry and textures to create great games. I'm always hesitant, though, because all the other indie developers are doing unique systems, great art, things that I could not compete with. I thought, "Enough! If I'm ever going to do this, I'm going to have to do it for myself before I could please the masses." My mindset is locked in placed and I'm determined to make a 64-esque platformer. I started by created a prop set for myself. I skipped the concept art and the idea boards and jumped right into designing elements that I wanted in the game. I created cubes and put textures on them. I created ramps like I would imagine Mario 64 would do. I created stylized trees, bridges, fences, rocks, grass, and railings. Then, I put all those objects into Unity and played with the coloring of the textures. The lighting. I want to see if my vision would sustain the transfer. It did. I like how the objects look in Unity. After I finished transferring my objects, I was going to design a level with the pieces I created, but I couldn't. I needed to know how to scale my level. Which brings me to the end of my week. I just started constructing a main character. I want the player to be a small dragon. I'm in the process of figuring out the best design for him as well as how I think he should be colored. I'm texture painting him because unwrapping him seems too complicated at the moment. That's where I am at now! Next Sunday I will be back with another update 😜
  13. Hi can you guys please help out with this blade? I want it to look more like a flame blade. (will change pallete after coloring it right), I'm a complete beginner that wants to make a huge content mod for Terraria, but as you can see I'm very inexperienced in spriting.
  14. Kjell Andersson

    Caustics Generator 5.0 Available

    Spectral rendering enters the computer graphics world. After a period with not that many feature improvements, Dual Heights Software have now finally released a new major version of their water texture generator software called Caustics Generator. The new version includes full spectrum color rendering allowing the simulation of spectral refraction which produces prismatic coloring effects and thus bringing caustics simulation to a new level. The spectral functionality is available in the Pro version on both Windows, Mac and Linux. Read more about the Caustics Generator at https://www.dualheights.se/caustics/
  15. Kjell Andersson

    Caustics Generator 5.0 Available

    Spectral rendering enters the computer graphics world. After a period with not that many feature improvements, Dual Heights Software have now finally released a new major version of their water texture generator software called Caustics Generator. The new version includes full spectrum color rendering allowing the simulation of spectral refraction which produces prismatic coloring effects and thus bringing caustics simulation to a new level. The spectral functionality is available in the Pro version on both Windows, Mac and Linux. Read more about the Caustics Generator at https://www.dualheights.se/caustics/ View full story
  16. Hi, I'm implementing a simple 3D engine based on DirectX11. I'm trying to render a skybox with a cubemap on it and to do so I'm using DDS Texture Loader from DirectXTex library. I use texassemble to generate the cubemap (texture array of 6 textures) into a DDS file that I load at runtime. I generated a cube "dome" and sample the texture using the position vector of the vertex as the sample coordinates (so far so good), but I always get the same face of the cubemap mapped on the sky. As I look around I always get the same face (and it wobbles a bit if I move the camera). My code: //Texture.cpp: Texture::Texture(const wchar_t *textureFilePath, const std::string &textureType) : mType(textureType) { //CreateDDSTextureFromFile(Game::GetInstance()->GetDevice(), Game::GetInstance()->GetDeviceContext(), textureFilePath, &mResource, &mShaderResourceView); CreateDDSTextureFromFileEx(Game::GetInstance()->GetDevice(), Game::GetInstance()->GetDeviceContext(), textureFilePath, 0, D3D11_USAGE_DEFAULT, D3D11_BIND_SHADER_RESOURCE, 0, D3D11_RESOURCE_MISC_TEXTURECUBE, false, &mResource, &mShaderResourceView); } // SkyBox.cpp: void SkyBox::Draw() { // set cube map ID3D11ShaderResourceView *resource = mTexture.GetResource(); Game::GetInstance()->GetDeviceContext()->PSSetShaderResources(0, 1, &resource); // set primitive topology Game::GetInstance()->GetDeviceContext()->IASetPrimitiveTopology(D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST); mMesh.Bind(); mMesh.Draw(); } // Vertex Shader: cbuffer Transform : register(b0) { float4x4 viewProjectionMatrix; }; float4 main(inout float3 pos : POSITION) : SV_POSITION { return mul(float4(pos, 1.0f), viewProjectionMatrix); } // Pixel Shader: SamplerState cubeSampler; TextureCube cubeMap; float4 main(in float3 pos : POSITION) : SV_TARGET { float4 color = cubeMap.Sample(cubeSampler, pos.xyz); return color; } I tried both functions grom DDS loader but I keep getting the same result. All results I found on the web are about the old SDK toolkits, but I'm using the new DirectXTex lib.
  17. Looking For Talent Looking For: - 3D Modelers (Natural & Hard Surface) - 3D Animators - Texture Artist - Game Designers Payment: Royalty My Experience: Programmer & Manager & Game Designer. My recent project: (so you see that I'm serious and actually finishing and releasing games) `http://store.steampowered.com/app/787820/Rickos_Island/` Project: A voxel open world game. It will be released on Steam in Early Access. Mostly completed/completed key features: - A Procedural & Infinite world to explore. - Over 12 Biomes to discover and find new creatures, blocks, resources and more. - A voxel block building system with over 150+ Blocks. - 30+ creatures to tame, train, ride, breed. (0 now but the mechanics are ready, just need models and animations) - Character progression system: train your character: level up, increase skills and more. - 6 Different Game Modes: Survival, Freedom, Hardcore, Freecam, Creative, Adventure. - The world noise gets crazier the more farther you get from the start. - Action System: let's be honest, it's like redstone but has more features and wireless. - Fully automate everything using the Action System, from a crops farm to an auto killing creatures machine. - Plant, farm and grow using an advanced farming system. Not completed key features: - Forge custom tools and weapons using an advanced system. - Fight mini bosses and bosses in order to progress in the game and unlock new items. - Find and master dungeons to get XP and higher stats weapons, tools, armor. - Magic: get essences from the nature and make potions, spells and more. Length of Project: Hoping for 2-4 months until the game is ready to release in Early Access, but then a few more months in the Early Access period. If you can only help for a limited time, that's fine but please mention it when you contact me! Contact: Add me on Discord Tbjbu2#8639
  18. Good evening, I'm new to the world of texturing and I have some questions about creating realistic non-procedural materials. I created a texture for a wooden bridge and I wondered what was the best way to make it realistic. First I created a square texture on Substance Designer (SD_Wood). Once applied to the model on Blender it is repeated several times and I do not really like the result (Blender_Tilable). I then imported the texture on photoshop to customize it a little (4096 x 1024) (PS_Custom). Now the result is more pleasant (Blender_Custom). My questions are: 1. Is this the best solution? 2. Are there any other ways to get this kind of result? 3. If this is the best solution, how can I regenerate the normal map, height map, ao, roughness etc. ? 4. From a theoretical point of view a non-square texture, but that is still 2^, is not recommended or can be used for the development of a videogames? Thanks in advance for any clarifications. Have a nice day!
  19. I want to output the Image file from the shaderresourceview of the rendertexture, so I have to transfer the shaderresourceview into a image object, and I don't know how to do this. Could you help me with it? PS:I am using SharpDx to develop my program. So it's better be coding by C#. Many thanks.
  20. GlassBear

    Asterion: Environment Art

    From the team of Asterion we want to show you a small preview of how our level is looking so far.. We have been working on textures and props and we are really happy with the results. Any feedback would be appreciated! Thank you!
  21. Once I needed a program for packing an atlas with 3d models. I could not find one, so I made it. Now it has only basic functionality. Should I improve it further? Does it need someone else? Link to download(for Windows): https://drive.google.com/open?id=1CLizcUAOsYnbdfyKCYDcGxmso79GPBuv
  22. I have found an example here: http://xboxforums.create.msdn.com/forums/t/66208.aspx about sharing surfaces/textures created by DX11 into the ID2D1DCRenderTarget, however the above example is based on SwapChain bound to a window (hwnd) What I need is to draw a shared texture into GDI as this is the only plugin interface in an old software I have. Any ideas ? Here is what I do. SharedSurface::SharedSurface(): { //Initialize the ID2D1Factory object D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, &pD2DFactory); //D2D1CreateFactory(D2D1_FACTORY_TYPE_MULTI_THREADED, &pD2DFactory); //initialize the ID2D1DCRenderTarget D2D1_RENDER_TARGET_PROPERTIES props = D2D1::RenderTargetProperties( D2D1_RENDER_TARGET_TYPE_HARDWARE, // D2D1_RENDER_TARGET_TYPE_DEFAULT, D2D1::PixelFormat( DXGI_FORMAT_B8G8R8A8_UNORM, D2D1_ALPHA_MODE_PREMULTIPLIED), 0, 0, D2D1_RENDER_TARGET_USAGE_GDI_COMPATIBLE, D2D1_FEATURE_LEVEL_DEFAULT ); HRESULT hr = pD2DFactory->CreateDCRenderTarget(&props, &pRT); DWORD createDeviceFlags = 0; createDeviceFlags |= D3D11_CREATE_DEVICE_DEBUG; ID3D11DeviceContext* context; D3D_FEATURE_LEVEL fl; DXGI_SWAP_CHAIN_DESC sd; ZeroMemory( &sd, sizeof( sd ) ); sd.BufferCount = 1; sd.BufferDesc.Width = width; sd.BufferDesc.Height = height; sd.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; sd.BufferDesc.RefreshRate.Numerator = 60; sd.BufferDesc.RefreshRate.Denominator = 1; sd.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT | DXGI_USAGE_SHARED; sd.OutputWindow = 0; // g_hWnd; sd.SampleDesc.Count = 1; sd.SampleDesc.Quality = 0; sd.Windowed = FALSE, // TRUE; hr = D3D11CreateDeviceAndSwapChain(nullptr, D3D_DRIVER_TYPE_HARDWARE, nullptr, createDeviceFlags, nullptr, 0, D3D11_SDK_VERSION, &sd, &pSwapChain, &mDevice, &fl, &context); hr = m_pSwapChain->GetBuffer(0, IID_PPV_ARGS(&pBackBuffer)); } bool SharedSurface::CreateTexture(ID3D11Device* device, UINT width, UINT height) { HRESULT hr; D3D11_TEXTURE2D_DESC desc; ZeroMemory(&desc, sizeof(desc)); desc.Width = width; desc.Height = height; desc.MipLevels = 1; desc.ArraySize = 1; desc.Format = DXGI_FORMAT_B8G8R8A8_UNORM; desc.SampleDesc.Count = 1; desc.MiscFlags = D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX; // D3D11_RESOURCE_MISC_SHARED; // desc.Usage = D3D11_USAGE_DEFAULT; desc.BindFlags = D3D11_BIND_SHADER_RESOURCE | D3D11_BIND_RENDER_TARGET; desc.CPUAccessFlags = 0; // D3D11_CPU_ACCESS_READ; // 0; if (device != nullptr) mDevice = device; hr = mDevice->CreateTexture2D(&desc, NULL, &pTexture); IDXGIResource * pDXGIResource = NULL; hr = pTexture->QueryInterface(__uuidof(IDXGIResource), (void **)&pDXGIResource); if SUCCEEDED(hr) { hr = pDXGIResource->GetSharedHandle(&sharedHandle); pDXGIResource->Release(); if SUCCEEDED(hr) { hr = pTexture->QueryInterface(__uuidof(IDXGIKeyedMutex), (LPVOID*)&pMutex); } } hr = pTexture->QueryInterface(__uuidof(IDXGISurface), (void **)&pSurface); FLOAT dpiX; FLOAT dpiY; pD2DFactory->GetDesktopDpi(&dpiX, &dpiY); D2D1_RENDER_TARGET_PROPERTIES props = D2D1::RenderTargetProperties(D2D1_RENDER_TARGET_TYPE_HARDWARE/*D2D1_RENDER_TARGET_TYPE_DEFAULT*/, D2D1::PixelFormat(DXGI_FORMAT_B8G8R8A8_UNORM, D2D1_ALPHA_MODE_PREMULTIPLIED),dpiX,dpiY); hr = pD2DFactory->CreateDxgiSurfaceRenderTarget(pBackBuffer,&props, &pBackBufferRT); DXGI_SURFACE_DESC sdesc; D2D1_BITMAP_PROPERTIES bp; ZeroMemory(&bp, sizeof(bp)); pSurface->GetDesc(&sdesc); bp.pixelFormat = D2D1::PixelFormat(sdesc.Format, D2D1_ALPHA_MODE_PREMULTIPLIED); hr = pBackBufferRT->CreateSharedBitmap(__uuidof(ID3D11Texture2D), pSurface,&bp, &pBitmap); return SUCCEEDED(hr); } void SharedSurface::Draw() { pBackBufferRT->BeginDraw(); pBackBufferRT->DrawBitmap(pBitmap); pBackBufferRT->EndDraw(); pBackBufferRT->Present(); } void SharedSurface::BindDC(HDC hdc, int width, int height) { RECT rct; rct.top = 0; rct.left = 0; rct.right = width; rct.bottom = height; pRT->BindDC(hdc, &rct); } // HOW TO EXCHANGE between pBackBufferRT and pRT ?
  23. Dear artists and developers, We welcome you to join MaterialJam.com - our growing library of digital materials. The materials we offer are 100% ORIGINAL and FREE for everyone. We provide one free download everyday for any of the materials in our library. For those who need more downloads we have special offers. All of our the materials come with Royalty Free License and can be used right away in your projects. Enjoy having one more source of art assets! Sincerely, MaterialJam.com , a service of Liman3D
  24. Please reply me about this
  25. Vilem Otte

    Dynamic resource reloading

    Making editors is a pain. I have a list of thousands of items I'd rather do than this - yet I made myself a promise to drag at least one full featured editor tool over the finish line. There are few reasons for that: I believe I have quite useful engine, it was my pet project all these years, it went through many transformations and stages - and solid tool is something like a goal I'd like to do with it, to make it something better than "just a framework". I'm very patient person, and I believe also hard working one. Throughout the years my goal is to make a game on my own engine (note, I've made games with other engines and I've used my engine for multiple non-game projects so far -> it eventually branched to be a full-featured commercial project in past few years). I've made few attempts but mostly was stopped by lacking such tool - that would allow me to build scenes and levels, in an easy way. And the most important one ... I consider tools one of the hardest part in making any larger project, so it is something like a challenge for me. Anyways so much for motivation, the tool is progressing well - it can be used to assemble scene so far, various entities (like light or materials) can have their properties (components) modified, with full undo/redo system of course. And so the next big part was ahead of me - asset loading and dynamic reloading. So here are the results: Engine editor and texture editor before my work on the texture. And then I worked on the texture: And after I used my highly professional programmer-art skills to modify the texture! All credits for GameDev.net logo go to its author! Yes, it's working. The whole system needs a bit of cleanup - but in short this is how it works: All textures are managed by Manager<Texture> class instance, this one is defined in Editor class There is a thread waiting for change on hard drive with ReadDirectoryChangesW Upon change in directory (or subdirectories), DirectoryTree class instance is notified. It updates view in bottom left (which is just a directory-file structure for watched directory and subdirectories), and also for modified/new files creates or reloads records in Manager<Texture> class instance (on Editor level) The trick is, reloading the records can only be done while they're not in use (so some clever synchronization needs to be done) I might write out some interesting information or even short article on this. Implementing it was quite a pain, but it's finally done. Now short cleanup - and towards the next one on my editor todo list! Thanks for reading & see you around!
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!