# How to Volume Render Data in Custom Application Without Widgets?

**URL:** https://discourse.paraview.org/t/how-to-volume-render-data-in-custom-application-without-widgets/14249
**Category:** Development
**Created:** [March 24, 2024, 1:32pm UTC](https://discourse.paraview.org/t/how-to-volume-render-data-in-custom-application-without-widgets/14249 "2024-03-24T13:32:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Depoha](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/6bbea6/32.png) [@Depoha](https://discourse.paraview.org/u/Depoha)
#### Post date: [March 24, 2024, 1:32pm UTC](https://discourse.paraview.org/t/how-to-volume-render-data-in-custom-application-without-widgets/14249/1 "2024-03-24T13:32:49Z")

</div>

Hello experts,  
I am writing a custom application to load in .pvd data and then volume render it. I am able to load in the data, and display at as representation types Surface, Points, Outline etc. But when I set it to Volume, nothing is rendered on the screen although the data is loaded.

This is how I load the data:

```auto
QStringList files;
files << /path/to/data/;
pqPipelineSource* pipelineSource = pqLoadDataReaction::loadData(files, "sources", "PVDReader");
pipelineSource->updatePipeline();

```

This is how I create the representation and render it:

```auto
pqObjectBuilder *builder = pqApplicationCore::instance()->getObjectBuilder();
pqDataRepresentation *drep = builder->createDataRepresentation(pipelineSource->getOutputPort(0), view);
auto dProxy = drep->getProxy();
vtkSMPropertyHelper(dProxy, "Representation").Set("Surface");
dProxy->UpdateVTKObjects();
drep->setVisible(true);
	
view->resetDisplay();
view->render();

```

Am I missing something?  
Thank You
