Jump to content
The Dark Mod Forums

RenderDef Models in Purchase Screen


Springheel

Recommended Posts

Bah, I'm getting nowhere fast with this menu.

 

I decided to take a break from fonts and look at the image part of the purchase screen.

 

While renderDef models will work for the mouseover effect, there are two big problems.

 

One, each model will need an individual modelOrigin and viewOffset value, at a minimum. Otherwise small objects will look tiny and large objects will be cut off by the available space. Not only that, but depending on the origin position, you might wind up with a screenshot of looking down the tip of a sword, for example (I was going to have the model rotate but that creates its own issues).

 

Two, trying to get the model to look good on top of parchment will be tricky. I might be able to do it by overlaying parchment on TOP of the model, but I don't know what that will do to the text.

 

 

I think the main reason we were going to use models is because we wanted to make it easy for mappers to create new purchase entities. However, if we use models they'll have to edit the mainmenu.gui to create a renderDef window with appropriate values for their model (very confusing for most), or risk having the model be cut off / too small / at a weird angle.

 

It might be more mapper-friendly to ask them to simply take a screenshot of their object and make an image file. The entitydef for purchase items already has an "image" flag that could point to a .tga file.

 

Thoughts?

Link to comment
Share on other sites

Models sure would be cool. If it's just the adjustment of the viewOffset, that might not be the showstopper. If a mapper goes for custom purchase-able items, tweaking the viewOffset is worth the effort, I think.

 

If there are serious problems with getting it look good in the first place, then I'd vote for images of course.

Link to comment
Share on other sites

We could potentially make a low...low...poly version of the models especially for the loadout screens, scale them to similar sizes, and give then give them the correct origins. I think this might look better in the end...as I remember rdumple saying that the higher poly models looked more jaggy at tiny sizes in his T2 Hud mockup. That's why he did low poly versions of everything...plus, then you're not rendering full sized models for such a small purpose.

Link to comment
Share on other sites

If it's just the adjustment of the viewOffset, that might not be the showstopper. If a mapper goes for custom purchase-able items, tweaking the viewOffset is worth the effort, I think.

 

That requires some pretty sophisticated knowledge though. First of all they'd have to be able to find the right place in the (exceptionally large) mainmenu.gui, and then would have to know how to add a new renderdef and how to teak those values. I suspect most mappers won't have the confidence or knowledge to do that.

 

We could potentially make a low...low...poly version of the models especially for the loadout screens, scale them to similar sizes, and give then give them the correct origins.

 

We could do that. Although the images are going to be fairly large on screen (much larger than the HUD icons), so I'm not sure how pleasing a low-poly model would be. It would certainly mean we could use a default renderdef, but then mappers would have to make models of any purchasable items they wanted to add. I guess modeling is a more common skill for mappers to have than editing guis.

Link to comment
Share on other sites

You're right; any new purchasable entity would need an inventory icon as well. In a pinch, the mapper could use the same image for both.

 

Well, that settles it then. I think I'll go ahead with 2d images for the purchase menu unless anyone can think of a compelling reason not to.

Link to comment
Share on other sites

If they don't rotate (no biggie) than a screenshot image is just as good as a highpoly version.

Much easier than lowpoly versions of everything that might possibly be sold/bought.

 

A quick screeny in Max can be a specific size, one shot with tga. Very easy.

Dark is the sway that mows like a harvest

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • nbohr1more

      The FAQ wiki is almost a proper FAQ now. Probably need to spin-off a bunch of the "remedies" for playing older TDM versions into their own article.
      · 1 reply
    • nbohr1more

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 3 replies
    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 7 replies
    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 7 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
×
×
  • Create New...