i created car livery for fh5, i wanna save the image and edit it littlebit so i can easily work, how i can get the livery dds png or wtf is that, d3d12.dll using and cpp?
Assistant
For extracting your own custom livery from Forza Horizon 5, you have a few approaches:
Easiest methods:
Use the in-game photo mode to capture high-quality screenshots of your livery from different angles
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Take screenshots during gameplay using Windows Game Bar (Win+G) or similar tools
More technical extraction:
Forza Modding tools - Look for community-made tools specifically for Forza games that can extract textures
Generic game asset extractors - Tools like Ninja Ripper, RenderDoc, or 3D Ripper DX might work
DirectX hooking - Since FH5 uses D3D12, you could potentially hook the graphics pipeline to capture textures, but this is complex
If you want to write your own C++ tool:
You'd need to hook into the D3D12 API calls
Intercept texture uploads/rendering calls
Extract the texture data and convert to standard formats (PNG/DDS)
Important considerations:
Make sure you're only extracting your own created content
Check Forza's terms of service regarding asset extraction
Some anti-cheat systems might flag modding tools
For your specific case, I'd recommend starting with community-made Forza modding tools or screenshot methods, as they're much simpler than writing custom D3D12 hooking code. The modding community for Forza games usually has established tools for this kind of work.
What's your primary goal - just getting clean reference images, or do you need the actual texture files for more advanced editing?
User
DirectX hooking
Assistant
For DirectX hooking to extract textures from FH5, here's the technical approach:
D3D12 Hooking Architecture:
cpp
// Hook D3D12 command list functions
ID3D12GraphicsCommandList::DrawInstanced
ID3D12GraphicsCommandList::DrawIndexedInstanced
ID3D12GraphicsCommandList::CopyTextureRegion
Key hooking points:
Device creation - Hook D3D12CreateDevice to get device handle
Command list recording - Hook draw calls to intercept texture bindings
Resource creation - Hook CreateCommittedResource for texture resources
typedef HRESULT(WINAPI* DrawIndexedInstanced_t)(
ID3D12GraphicsCommandList* pCommandList,
UINT IndexCountPerInstance,
UINT InstanceCount,
// ... other params
);
HRESULT WINAPI DrawIndexedInstanced_Hook(/* params */) {
// Capture bound textures here
// Check if current draw call uses car livery
return original_DrawIndexedInstanced(/* params */);
}
This is quite complex - you'll need solid knowledge of D3D12 API, reverse engineering, and the game's rendering pipeline. Community tools might be more practical unless you're doing this as a learning exercise.