Comments (20)
Which game are you checking on?
from blender-cod.
Actually, scrap what i said, i thought it would work but i didn't test it out myself
i am having an issue with the shading on xmodels, in cod4
what i meant with phong shading ^ you can clearly see the edges, while it's supposed to look shaded
had to use a quick example, but this happens on all models i export using blender-cod.
from blender-cod.
What is the name of that model, and which version of Blender-CoD are you using?
from blender-cod.
@SE2Dev It's a giant M40a1
from blender-cod.
it's just the m40 i had to compile into a mod, replaced me_concrete_barrier real quick, happens with all models i compile, i'm using the latest version from this page.
you can see it on this model as well, which is a custom one
just anything made with blender shows up with the edges clearly visible
from blender-cod.
Why is there a PSO on an M40?
from blender-cod.
If I understand correctly, smooth shading using vertex normals is desired here? Is the mesh shading set to smooth (on faces) in Blender?
from blender-cod.
Can you show me a screenshot of the Blender-CoD add-on page in Blender so I know exactly which version you're using?
I need to know if you're using a development version or an older version.
from blender-cod.
yes, all faces are set to smooth
here's the one im using
Here's what it looks like in blender:
from blender-cod.
Looks like it exports the face normals instead of the vertex normals.
Well, that's the super old version 0.3.5, which is from 2012. It is also the only release available on GitHub.
Please try the latest code from master branch. @SE2Dev or development branch?
from blender-cod.
0.3.5 seems to export vertex normals:
https://github.com/CoDEmanX/blender-cod/blob/blender_26/io_scene_cod/export_xmodel.py#L536
But since it looks like face normals in-game, there might actually be some problem with Blender. For instance, the vertex normals might require to be updated if to_mesh() is used to triangulate...
from blender-cod.
this is what i get from the master branch, when i try to tick the checkbox in add-ons
from blender-cod.
Did you use Download Zip?
That's not going to work. You need to download the repo, extract the content and zip the subfolder io_scene_cod
. That newly created archive should install in Blender. Alternatively, you could delete the existing folder io_scene_cod in %appdata%\Blender Foundation\Blender\2.78\scripts\addons
and place the new one there.
from blender-cod.
This should work for the time being.
blender-cod_beta.zip
from blender-cod.
sorry for the late reply, been busy with alot of things, this is what happens when i export as xmodel_export. selected all objects in the scene
from blender-cod.
I assume your model has a skeleton, materials, uv maps, etc.
You should just need to select the model and choose export from the menu. If that doesn't work, try using this version: io_scene_cod_beta2.zip
from blender-cod.
not sure if i'm doing it right..
here's the process:
https://streamable.com/eawkj
from blender-cod.
Ah, I see what happened. When I rewrote the export logic, I made it so that it'd look only for models that had skeletons, and forgot to restore the ability to automatically generate the default skeleton for static models. I still need to re-implement this feature.
In the mean time, you should be able to resolve this issue by adding a skeleton with a single bone (called tag_origin) and linking it to the model.
from blender-cod.
that actually makes alot of sense, thanks alot, i'll try it out asap
from blender-cod.
I'm going to close this issue as it appears to have gotten somewhat off topic, and the original issue appears to have been resolved.
from blender-cod.
Related Issues (20)
- Refactor Object Selection Logic for Export
- Exportable Model Resolution is Too Strict HOT 5
- unexpected keyword argument (same issue as #16) HOT 4
- Incorrectly exported UV Maps HOT 7
- Refactor Scale Functionality HOT 1
- Add Blender 2.9x Support HOT 8
- CoD 2 moddeling with Blender 2.61 cant export models HOT 2
- Special file (animation) export problem
- Blender 2.9 export problem HOT 3
- version 0.5.2 doesn't even work with blender 2.8x HOT 1
- doesnt work in 2.8x or 2.9x HOT 1
- Don't Work with Blender 2.92
- Rewrite Material Import Logic
- installation issue
- Doesn't Work on Blender 3.0.0
- Blender 2.93+ uses Python 3.9+
- calc_tessface was removed from Mesh API in Blender 2.80 HOT 4
- texture_slots was removed from Material API in Blender 2.80
- Mesh cannot be removed from main database
- can't find export/import button HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blender-cod.