Jump to content
Hash, Inc. - Animation:Master

Malo

Craftsman/Mentor
  • Posts

    314
  • Joined

  • Last visited

  • Days Won

    7

Posts posted by Malo

  1. UVs work well for me.
    Normally if you have UVs on your Obj , then you must have a stamp for each UV .
    It is normal to not see the textures , because the converter does not import and will not attribus images in stamps .
    So you need to import and assign them yourself.

    For the poles , I think it is better to think polygons as patches before converting the Obj model in MDL. (Nemyax have write an another addon for Blender that can help for that : https://www.hash.com/forums/index.php?showtopic=46873&hl=nemyax&do=findComment&comment=401532 , and there are plenty of tools to modify polygons,edges and vertices). The problem of modeling polygonal as patches, it is there are no hooks with polygons... however it would be possible to do it with ngones rules , by choosing every vertex that is on three common faces, is an hook ... but angle with no bevel will create problem (but personnaly I prefer beveled them to be more natural for the render)

  2. Thank Nemyax to take time to ameliorate your plugin.

     

    Repair poles with 5 , 3 or more vertices With hooks automatically seems to me not so easy to solve , because of a different combinations make Approximate results (which one to choose for the same topology) . And the bitfields for hooks are not resolut yet.

     

    "With A:M's approach to platt projection I wonder if multiple UVs couldn't be assigned to the same location" I am not sure to understand, could you explain more?

     

    The loss of the UV patches is a problem that can be repaired. I had this problem to be solved on one of my models, when i add hooks. see this picture. AEL.jpg
    I solved this problem by writing small tools I talk about in this topic with links to download them : https://www.hash.com/forums/index.php?showtopic=47180&hl=

  3. Hi Rodney,

     

    yes it seem to be a restriction of the browser. I use Construct2 to create the javascript and the Htlm5 files. This files are create to be on a server to be used via browser, but I can open the htlm with firefox directly, but not with chrome. Perhaps it is possible to configurate chrome to open the htlm directly, but i don't know how to do it. If you can opened it via Adobe Edge Animate, that is graet :)

     

     

     

     

     

  4. tinkering , I managed to fix my UV .

    For this I wrote two small tools, if someone can be interested , here are the two tools:

    The first allows peak UVs (http://treser.net/AnimationMaster/2015/export/MDLPasteUVDecals.zip )... Peak UVs is not the better to keep the power of the patches, but if you want to edit your UV, rotate, scale, move, detach, attach (your UV will be deformed)... so this tool will be usefull, because if the splines are deformed, you can peak your UV more time you want.
    To peak your UV : Open the HTML file. Importing the MDL , save the new mdl, and voilà. .

     

    The second tool ( http://treser.net/AnimationMaster/2015/export/MDLPeakUVDecals.zip ) is used to import the missing patches from UV .It can be done if your UV is peaked.
    before importing the MDL by htlm page , name the stamp that contains holes : " hole" . and create a new stamp with only patches that are lacking, and appoint the stamp: "paste" . Open the HTML file, import the mdl file , convert, save the new mdl file.

    Import your mdl in Animation master, move attached, detach the CP of the UV, save, export and use the Peak UV tool, to clean the UV.

  5. Hi,

    Your MDD must be in the same subdivision whith your model.
    In Blender there is two way to import MDD. The better is using "Mesh cache modifier".
    The scale must be 1 in option of your Obj import in blender, to be in the scale of your MDD format.

    Blender not use the same XYZ, it use XZY. (so it is to changed in option import)

    The Obj AM export have some bugs.
    AM use polygones not attached in AM, so when it must attached them to create Obj format, it do mistake, and sometime have not solution to stick edges and vertices. Hooks is badly exported.

    I have create a little tool to "repear" Obj ,see this topic: https://www.hash.com/forums/index.php?showtopic=47134&page=2
    By this way, you can export all your models without hooks. with the subdivision you want (not variable) (helas, my code is not strong enough with big models :( )

    If you have hooks in your models... if there are more than one hooks by patches, no good solution for yet. If you have less than one hook by patches, then you can export without subdivision.
    Actually, Obj export have bugs with hooks export when subdivised, and MDD have some problems too with hooks, some vertices movement are not assigned to the good vertices.

  6. Thank you for the answers. :)

    Nancy, thank you for the tip , I did not know this possibility. It is actually possible to attach two or three CPS but attach 4 CPs it seem impossible, it detached one to attach it to third.

  7. Hello,

    In the windows of Decals, I have a way to detach CP of each other (Ctrl click). But I don't find a way to paste them again. Is it possible?

    It is also possible to exclude a patch of Decals (Remove decals...), but I don't find a way to import a patch in Decals. Is it possible?

     

    I ask this, because when I modify a textured model, I lose patches in Uvs. So I try to found a way to repair the UVs.

    Thank you in advance for the answers :)

     

  8. thanks Nancy and Rodney...

    It is just a "correction" of the Obj generated by AM... But the model is not optimised... There are some reflections to be done to optimised it.

    For example for the hooks export, actuelly hooks have problems, I think it come from in party of that it don't affect the patches which is cut by hooks, but affect the neighboring patch). In affect the good patch, This reduces the possibilities for subdivision (3 possibilities against 12). Here a graphic to explain what I try to explain and a suggestion for create a simple topology (I don't know if this topology is possible to be applicated) :

    hooksB.jpg

    I think triangles have to be rethink too... All program that use AM patches, when they export them they use the same topology, 3Dpainter use this topology too. So the code exist somewhere.

  9. I will try to explain :

    As you can see on the picture, I parse the Obj format, to change Faces's lines.

     

    The hooks in Obj generated by AM is write with 3 lines with the same vertices in the last vertices of each lines. (so it easy to found them)

    I write this 3 lines in one lines with 5 vertices (in the order you can found in the graphic, blue)

     

    For triangles. AM write them with 4 vertices, the last vertice is the same of the the first vertice of the line (so it easy to found it)
    I elimnate the last vertice of the line. (green in the graphic)

     

    For 5gones, AM write them with a line with 4 vertices, and a line with 3 vertices. The first and the last vertices of the first line is the same of the first and second vertices of the second line.

    I write them in a line with 5 vertices. as in the graphic (red)

     

    When the model is subdivised, the hooks is the same change. No need to change the 5 gones, for the 3 vertices I close two triangles in a polygones.

    For that I found two lines with 4 vertices with the same vertices in first and last vertices of the two lines.

     

    and voilà. :)

     

    If you want more explication, don't hesitate to ask.

    Vertices.jpg

    • ____ 1
  10. Hi raskrodi,

    I have made a video (I have not time to ameliorate it this week end, sorry) But the big explication is in it.
    I notice that big model freeze the browser. (I am not a programmer, and HTLM5 is not optimised for that)
    http://treser.net/AnimationMaster/2015/export/AMBLender.flv

    The tool is simple to use, you click on index.htlm file. (it work with firefox, but it is possible that Chrome stop the program (the htlm5 is generated with construct2 so it is not made to be used outside the web))
    when the page is open, clik on the first image if you use an obj with no subdivision, and the second if you use a subdvised model. after you call the Obj format (that you have changed the extention in ".txt")... after save the model generated big model can freeze the programm, so copy the windows and stick the text in an text format, that you will changed in Obj extention.

     

    There is a problem in Obj and MDD export in AM when there are more than one hook by patches. the topology is crazy. And can't be repair in extern.

    The code is simple. If you are interested, I can explain it.

  11. By changing the Obj format created by AM, it is possible to have a good model in Blender.

    The changes are as follows.

    - rewrite the triangles (eliminate duplicate vertice in the faces).

    - eliminate unnecessary edge in the face five sides

    - Eliminate the two edges formed on single hooks to create 5gones.

    The benefit is that it is possible to keep the Uvs and operate with MDDS.

    If you want to see the result in Blender (and the trick to recreate volum lost in subdivision with low-poly): Thom walked. http://treser.net/AnimationMaster/2015/export/Thom.blend

    thom.png

     

    I deepened my reflections on the conversion hooks, and here's a better solution to the one I presented above:

    the trick is to convert hooks in 5gones. (the 5gones in subdivision create better topology than triangles.)

    hookDISKOULM.png

     

    The explanation of patches is interesting (thank Rodney), it allows to better understand the problems of rendering normals, bumps, displacement, patches with 5 sides, compared to polygons that are attached to each other without being able to break away and create holes in them. But the advantage of the patches is that they can be dynamic and not be dependent on the topology for the density of polygons.

     

    Nice to see the evolution of your plugin, rasikrodri.

  12. yes, indeed ... but more poles with 5 or 3 edges, and there I don't know what is best 3 pole with 5 or 3 edges or one pole with 7edges.

    I think Furchur want to make reference to the technicque you use in your script for Blender "Animation: Master Middleman".
    If that is indeed this could work, but I was not thinking about that, because if it is for export to the outside of AM and reimport in AM, there is an easier way, which is to use the UVs as references to reconstruct the topology of the starting AM model.

×
×
  • Create New...