Jump to content
The Dark Mod Forums

Compass Model?


ascottk

compass styles  

3 members have voted

  1. 1. How do we want the compass to look?

    • Compass 1 (100thpenn)
      1
    • Compass 2 (pewter)
      1
    • Compass 3 (smartstart)
      1
    • Compass 4 (stanley)
      0
    • gallery.hd
      0
    • qpindia
      0


Recommended Posts

@Ishtvan: I'm under the impression that how much it affects performance mostly depends on how much of the screen it covers, how many layers it has, and how expensive those layers are to render (things using expensive shaders take up more fill-rate) Inventory icons take up a small amount of the screen and don't use expensive shaders, so I'm not particularly worried about their performance. In any case, the reason I was using icons rather than models had nothing to do with performance... (see below)

 

@SneaksieDave: Sorry, I guess I wasn't doing a good job of explaining myself... With D3 GUIs, you cannot change a model at runtime. (you can change the model's position/lighting/etc but not which model is rendered) Any model used by a GUI has to be hand-coded to be in the GUI. If you have a GUI with 10 models, it needs to have 10 windows, one for each model. This is not extensible and it prevents a mapper from just coding an item that uses a given model.

 

However, I think Sparhawk's idea of using the GUI overlay may provide a solution, because it can load up new GUIs on top of the HUD at runtime. (and I think this would also simplify the inventory display code slightly) It would still require a mapper to create a GUI for each model, but it's better than forcing them to replace the HUD with their own version.

 

Edit: Also, there's the issue that models may be difficult/impossible to fade.

Link to comment
Share on other sites

You wouldn't. But I thought you said your version 'faked' it in a way that never got to the point where you were looking at it from below?

 

In any case, the reason I was using icons rather than models had nothing to do with performance... (see below)

 

I think Ish was talking about the effect of adding animated texture effects to the inventory icons--if those animated textures are going to cause any kind of performance hit they probably aren't worth it (I don't know if they would or not).

Link to comment
Share on other sites

I think I can create a new version that allows it to be seen from above and below, if the sides are a single color.

 

I'm pretty sure animated materials have almost no effect on performance, especially given given the small icon sizes. Icons that rely on scripting to be animated (such as a compass, even with a model) might have a very slight impact, but the compass is pretty much a worst-case scenario (while selected, its script has to be run every frame), and for me the compass has no noticeable effect on framerate. (though admittedly, I haven't tested it in CPU-bound situations)

Link to comment
Share on other sites

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...